summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ltc4261.c
diff options
context:
space:
mode:
authorHimanshu Jha <himanshujha199640@gmail.com>2017-12-30 21:09:56 +0530
committerJason Gunthorpe <jgg@mellanox.com>2018-01-02 11:20:13 -0700
commitd78756d842de49608bedc80666ae4c8cbf1e4889 (patch)
tree88a386aa7315dd1e32699223a28af72b6a5b3d4f /drivers/hwmon/ltc4261.c
parentf48fca4d818f92966419fb74ce56bc5e198ecb5c (diff)
downloadlinux-d78756d842de49608bedc80666ae4c8cbf1e4889.tar.bz2
IB/ocrdma: Use zeroing memory allocator than allocator/memset
Use dma_zalloc_coherent for allocating zeroed memory and remove unnecessary memset function. Done using Coccinelle. Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci 0-day tested with no failures. Suggested-by: Luis R. Rodriguez <mcgrof@kernel.org> Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Acked-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/hwmon/ltc4261.c')
0 files changed, 0 insertions, 0 deletions