]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: use kcalloc instead of multiply
authorTobin C. Harding <me@tobin.cc>
Fri, 29 Dec 2017 08:31:05 +0000 (16:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:07:42 +0000 (19:07 +0200)
commitfb4f7f9fdf2696b2c124f5b6e7e03f3126ab8a32
tree819631a0b7430c67b06f0b645153b08876588b27
parent71f9929f8d2da60a5e688883bd0b5fe019d37cd2
rtlwifi: use kcalloc instead of multiply

This is merged by Ping-Ke Shih from commit a34324823895 ("staging:
rtlwifi: use kcalloc instead of multiply"), and original commit log
is reserved below.

checkpatch emits multiple warnings of type

WARNING:ALLOC_WITH_MULTIPLY: Prefer kcalloc over kzalloc with multiply

Replace two calls to kzalloc() with calls to kcalloc().

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/efuse.c