On 2/4/2010 9:33 AM, Ameya Palande wrote:
vfree() is NULL safe so MEM_VFree() doesn't provide any significant
advantage. By getting rid of MEM_VFree() and the NULL pointer check
associated with it, we can save on:
1. One level of indirection which translates to a function call cost.
2. NULL pointer checking cost.

Signed-off-by: Ameya Palande<[email protected]>
---
  arch/arm/plat-omap/include/dspbridge/mem.h |   17 -----------------
  drivers/dsp/bridge/pmgr/dmm.c              |    3 +--
  drivers/dsp/bridge/services/mem.c          |   17 -----------------
  3 files changed, 1 insertions(+), 36 deletions(-)


Acked-by: Omar Ramirez Luna <[email protected]>

Pushed to dspbridge.

- omar
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to