* Re: [PATCH -next] s390/pci: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
[not found] <CAPgLHd_ioTOW81brF-Yk9ssx2nXrFcbOShqHP+AsFyWyoUqe3A@mail.gmail.com>
@ 2013-02-28 12:50 ` Heiko Carstens
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Carstens @ 2013-02-28 12:50 UTC (permalink / raw)
To: linux-s390
On Mon, Feb 25, 2013 at 10:09:25PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Using kmem_cache_zalloc() instead of kmem_cache_alloc() and memset().
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
[...]
> - zdev->fmb = kmem_cache_alloc(zdev_fmb_cache, GFP_KERNEL);
> + zdev->fmb = kmem_cache_zalloc(zdev_fmb_cache, GFP_KERNEL);
> if (!zdev->fmb)
> return -ENOMEM;
> - memset(zdev->fmb, 0, sizeof(*zdev->fmb));
> WARN_ON((u64) zdev->fmb & 0xf);
Applied. Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <CAPgLHd-wy1eaf0OjxHeho3Lo3ADBt=oKsU7pGR0vpbHvHiCkjg@mail.gmail.com>]
end of thread, other threads:[~2013-02-28 12:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAPgLHd_ioTOW81brF-Yk9ssx2nXrFcbOShqHP+AsFyWyoUqe3A@mail.gmail.com>
2013-02-28 12:50 ` [PATCH -next] s390/pci: use kmem_cache_zalloc instead of kmem_cache_alloc/memset Heiko Carstens
[not found] <CAPgLHd-wy1eaf0OjxHeho3Lo3ADBt=oKsU7pGR0vpbHvHiCkjg@mail.gmail.com>
2012-12-03 16:02 ` Martin Schwidefsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox