diff options
author | Elena Oat <oat.elena@gmail.com> | 2014-03-09 14:04:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-18 10:46:37 -0700 |
commit | b6657bfb48983908cb70eb69a7898309e56f0134 (patch) | |
tree | f2d64e7c1b57e717abd129dd2be751ede80b0831 /drivers/staging/rtl8188eu | |
parent | 4d7af37672f456dd32c6200f87fe02a7103b4323 (diff) | |
download | blackbird-obmc-linux-b6657bfb48983908cb70eb69a7898309e56f0134.tar.gz blackbird-obmc-linux-b6657bfb48983908cb70eb69a7898309e56f0134.zip |
Staging: rtl8188eu: Replace rtw_zmalloc with kzalloc.
This patch replaces rtw_zmalloc with kzalloc in function
rtw_setstandby_cmd. There are no locks, hence GFP_KERNEL flag is used.
Signed-off-by: Elena Oat <oat.elena@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c index 8c0d2ebd03c5..8c548817da9f 100644 --- a/drivers/staging/rtl8188eu/core/rtw_cmd.c +++ b/drivers/staging/rtl8188eu/core/rtw_cmd.c @@ -393,13 +393,13 @@ u8 rtw_setstandby_cmd(struct adapter *padapter, uint action) u8 ret = _SUCCESS; - ph2c = (struct cmd_obj *)rtw_zmalloc(sizeof(struct cmd_obj)); + ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); if (ph2c == NULL) { ret = _FAIL; goto exit; } - psetusbsuspend = (struct usb_suspend_parm *)rtw_zmalloc(sizeof(struct usb_suspend_parm)); + psetusbsuspend = kzalloc(sizeof(struct usb_suspend_parm), GFP_KERNEL); if (psetusbsuspend == NULL) { kfree(ph2c); ret = _FAIL; |