]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8188eu: Use kcalloc instead of kzalloc
authorNavya Sri Nizamkari <navyasri.tech@gmail.com>
Tue, 10 Mar 2015 11:59:27 +0000 (17:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Mar 2015 17:41:09 +0000 (18:41 +0100)
This patch uses kcalloc instead of kzalloc function.
A coccinelle script was used to make this change.

Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c

index bc275b2a7d37f66431268ee0629e73dca34046b6..06d1e654483e2c4426a4c9c25dd0b830275aed2a 100644 (file)
@@ -42,7 +42,7 @@ int   rtl8188eu_init_recv_priv(struct adapter *padapter)
        _rtw_init_queue(&precvpriv->free_recv_buf_queue);
 
        precvpriv->pallocated_recv_buf =
-               kzalloc(NR_RECVBUFF * sizeof(struct recv_buf), GFP_KERNEL);
+               kcalloc(NR_RECVBUFF, sizeof(struct recv_buf), GFP_KERNEL);
        if (precvpriv->pallocated_recv_buf == NULL) {
                res = _FAIL;
                RT_TRACE(_module_rtl871x_recv_c_, _drv_err_,