staging: rtl8188eu: Use kcalloc instead of kzalloc.
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>
This commit is contained in:
parent
7f39902654
commit
0507a1e52b
|
@ -1634,7 +1634,8 @@ void rtw_alloc_hwxmits(struct adapter *padapter)
|
|||
|
||||
pxmitpriv->hwxmit_entry = HWXMIT_ENTRY;
|
||||
|
||||
pxmitpriv->hwxmits = kzalloc(sizeof(struct hw_xmit) * pxmitpriv->hwxmit_entry, GFP_KERNEL);
|
||||
pxmitpriv->hwxmits = kcalloc(pxmitpriv->hwxmit_entry,
|
||||
sizeof(struct hw_xmit), GFP_KERNEL);
|
||||
|
||||
hwxmits = pxmitpriv->hwxmits;
|
||||
|
||||
|
|
Loading…
Reference in New Issue