Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rsi: consolidate kmalloc/memset 0 calls to kzalloc

This is an API consolidation only. The use of kmalloc + memset to 0
is equivalent to kzalloc.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Nicholas Mc Guire and committed by
Kalle Valo
97d14b62 7be0f5b5

+1 -2
+1 -2
drivers/net/wireless/rsi/rsi_91x_mgmt.c
··· 1023 1023 return -ENOMEM; 1024 1024 } 1025 1025 1026 - selected_rates = kmalloc(2 * RSI_TBL_SZ, GFP_KERNEL); 1026 + selected_rates = kzalloc(2 * RSI_TBL_SZ, GFP_KERNEL); 1027 1027 if (!selected_rates) { 1028 1028 rsi_dbg(ERR_ZONE, "%s: Failed in allocation of mem\n", 1029 1029 __func__); ··· 1032 1032 } 1033 1033 1034 1034 memset(skb->data, 0, sizeof(struct rsi_auto_rate)); 1035 - memset(selected_rates, 0, 2 * RSI_TBL_SZ); 1036 1035 1037 1036 auto_rate = (struct rsi_auto_rate *)skb->data; 1038 1037