Staging: wilc1000: Remove unnecessary 'out of memory' message.
PATCH 1/1 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 <[email protected]>
--- drivers/staging/wilc1000/host_interface.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/wilc1000/host_interface.c +1 -3
@@ -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 ;
Signature · 1 line
1.9.1