diff options
author | Tapasweni Pathak <tapaswenipathak@gmail.com> | 2014-09-21 05:49:41 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-23 08:11:56 -0700 |
commit | 9d76a7e4dc516016e1471f33de218ee0745bbc2d (patch) | |
tree | b4a0f2d01a2f6c5ae070e550d7187a73912d4c79 /drivers/staging/rtl8712 | |
parent | 15a4db9268f4090987cab4b2c40818291652607e (diff) | |
download | linux-stable-9d76a7e4dc516016e1471f33de218ee0745bbc2d.tar.gz linux-stable-9d76a7e4dc516016e1471f33de218ee0745bbc2d.tar.bz2 linux-stable-9d76a7e4dc516016e1471f33de218ee0745bbc2d.zip |
Staging: rtl8712: use kmalloc_array over kmalloc
This patch fixes checkpatch.pl warning in file rtl871x_xmit.c
WARNING : prefer kmalloc_array over kmalloc with multiply
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_xmit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_xmit.c b/drivers/staging/rtl8712/rtl871x_xmit.c index ca7e6e4f7b8d..f49acaf04076 100644 --- a/drivers/staging/rtl8712/rtl871x_xmit.c +++ b/drivers/staging/rtl8712/rtl871x_xmit.c @@ -955,8 +955,8 @@ static void alloc_hwxmits(struct _adapter *padapter) struct xmit_priv *pxmitpriv = &padapter->xmitpriv; pxmitpriv->hwxmit_entry = HWXMIT_ENTRY; - pxmitpriv->hwxmits = kmalloc(sizeof(struct hw_xmit) * pxmitpriv->hwxmit_entry, - GFP_ATOMIC); + pxmitpriv->hwxmits = kmalloc_array(pxmitpriv->hwxmit_entry, + sizeof(struct hw_xmit), GFP_ATOMIC); if (pxmitpriv->hwxmits == NULL) return; hwxmits = pxmitpriv->hwxmits; |