diff options
author | Tapasweni Pathak | 2014-09-21 02:17:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-09-23 17:08:58 +0200 |
commit | 15a4db9268f4090987cab4b2c40818291652607e (patch) | |
tree | b807f44c0a2041bfb7842f87f50b219883e7e215 /drivers/staging/rtl8712 | |
parent | Staging: rtl8712: fixed space prohibition (diff) | |
download | kernel-qcow2-linux-15a4db9268f4090987cab4b2c40818291652607e.tar.gz kernel-qcow2-linux-15a4db9268f4090987cab4b2c40818291652607e.tar.xz kernel-qcow2-linux-15a4db9268f4090987cab4b2c40818291652607e.zip |
Staging: rtl8712: remove unnecessary 'out of memory' message
This patch fixes checkpatch.pl warning in file usb_ops_linux.c
WARNING : possible unecessary 'out of memory' message
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/usb_ops_linux.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712/usb_ops_linux.c index a6c2aab0a946..442ae25dd8b8 100644 --- a/drivers/staging/rtl8712/usb_ops_linux.c +++ b/drivers/staging/rtl8712/usb_ops_linux.c @@ -496,11 +496,8 @@ int r8712_usbctrl_vendorreq(struct intf_priv *pintfpriv, u8 request, u16 value, u8 *palloc_buf, *pIo_buf; palloc_buf = kmalloc((u32)len + 16, GFP_ATOMIC); - if (palloc_buf == NULL) { - dev_err(&udev->dev, "%s: Can't alloc memory for vendor request\n", - __func__); + if (palloc_buf == NULL) return -ENOMEM; - } pIo_buf = palloc_buf + 16 - ((addr_t)(palloc_buf) & 0x0f); if (requesttype == 0x01) { pipe = usb_rcvctrlpipe(udev, 0); /* read_in */ |