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:
parent
0907bb2ca2
commit
98b6594844
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue