diff options
author | Dilek Uzulmez <dilekuzulmez@gmail.com> | 2016-10-09 22:27:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-16 10:26:04 +0200 |
commit | 98b6594844c956d79ccac581a3f08194241afc59 (patch) | |
tree | 53a4b0ad56edd9d8c7ee6ee8454ac41587cd8013 /drivers/staging/wilc1000/host_interface.c | |
parent | 0907bb2ca2b0f712743fcf7b0d6448d0ec1848d8 (diff) | |
download | op-kernel-dev-98b6594844c956d79ccac581a3f08194241afc59.zip op-kernel-dev-98b6594844c956d79ccac581a3f08194241afc59.tar.gz |
Staging: wilc1000: Remove unnecessary 'out of memory' message.
This patch fixes checkpatch.pl warning in file host_interface.c
WARNING: Possible unnecessary 'out of memory' message
Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/host_interface.c')
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 78f5613..0d16e49 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -2322,10 +2322,8 @@ static u32 Handle_ListenStateExpired(struct wilc_vif *vif, wid.size = 2; wid.val = kmalloc(wid.size, GFP_KERNEL); - if (!wid.val) { - netdev_err(vif->ndev, "Failed to allocate memory\n"); + if (!wid.val) return -ENOMEM; - } wid.val[0] = u8remain_on_chan_flag; wid.val[1] = FALSE_FRMWR_CHANNEL; |