From: Kumar Gala Date: Tue, 28 Apr 2009 15:04:10 +0000 (-0700) Subject: gianfar: Use memset instead of cacheable_memzero X-Git-Tag: v2.6.31-rc1~14^2~597 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c31d55f755ff2bc1f7dc3b45c500032fe90aff8;p=platform%2Fkernel%2Flinux-exynos.git gianfar: Use memset instead of cacheable_memzero cacheable_memzero() is completely overkill for the clearing out the FCB block which is only 8-bytes. The compiler should easily optimize this with memset. Additionally, cacheable_memzero() only exists on ppc32 and thus breaks builds of gianfar on ppc64. Signed-off-by: Kumar Gala Signed-off-by: David S. Miller --- diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index dae1437..2bb038b 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c @@ -1207,7 +1207,8 @@ static int gfar_enet_open(struct net_device *dev) static inline struct txfcb *gfar_add_fcb(struct sk_buff *skb) { struct txfcb *fcb = (struct txfcb *)skb_push(skb, GMAC_FCB_LEN); - cacheable_memzero(fcb, GMAC_FCB_LEN); + + memset(fcb, 0, GMAC_FCB_LEN); return fcb; }