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>
This commit is contained in:
Dilek Uzulmez 2016-10-09 22:27:53 +03:00 committed by Greg Kroah-Hartman
parent 0907bb2ca2
commit 98b6594844
1 changed files with 1 additions and 3 deletions

View File

@ -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;