IB/mthca: Use zeroing memory allocator than allocator/memset
Himanshu Jha authored

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: default avatarLuis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
27f382da
Name Last commit Last update
Documentation Merge tag 'hwmon-for-linus-v4.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
arch Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
block Merge branch 'for-linus' of git://git.kernel.dk/linux-block
certs License cleanup: add SPDX GPL-2.0 license identifier to files with no license
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
drivers IB/mthca: Use zeroing memory allocator than allocator/memset
firmware kbuild: remove all dummy assignments to obj-
fs Merge tag 'nfs-for-4.15-2' of git://git.linux-nfs.org/projects/anna/linux-nfs
include IB/mlx5: Enable QP creation with a given blue flame index
init EXPERT Kconfig menu: fix broken EXPERT menu
ipc Rename superblock flags (MS_xyz -> SB_xyz)
kernel Merge branch 'for-linus' of git://git.kernel.dk/linux-block
lib Merge tag 'riscv-for-linus-4.15-rc2_cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux
mm Merge branch 'for-linus' of git://git.kernel.dk/linux-block
net Merge tag 'nfs-for-4.15-2' of git://git.linux-nfs.org/projects/anna/linux-nfs
samples kbuild: remove all dummy assignments to obj-
scripts Merge branch 'akpm' (patches from Andrew)
security Merge tag 'apparmor-pr-2017-11-30' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
sound Revert "ALSA: usb-audio: Fix potential zero-division at parsing FU"
tools Merge tag 'pm-4.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
usr initramfs: fix initramfs rebuilds w/ compression after disabling
virt Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.