Re: [PATCH net-next] drivers:net: Convert dma_alloc_coherent(...__GFP_ZERO) to dma_zalloc_coherent
From: Neil Horman <nhorman@tuxdriver.com>
Date: 2013-08-27 13:08:09
Also in:
linux-wireless, lkml
From: Neil Horman <nhorman@tuxdriver.com>
Date: 2013-08-27 13:08:09
Also in:
linux-wireless, lkml
On Mon, Aug 26, 2013 at 10:45:23PM -0700, Joe Perches wrote:
__GFP_ZERO is an uncommon flag and perhaps is better not used. static inline dma_zalloc_coherent exists so convert the uses of dma_alloc_coherent with __GFP_ZERO to the more common kernel style with zalloc. Remove memset from the static inline dma_zalloc_coherent and add just one use of __GFP_ZERO instead. Trivially reduces the size of the existing uses of dma_zalloc_coherent. Realign arguments as appropriate. Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>