[PATCH] staging: wilc1000: remove memory allocate failure message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch cleanup following warning reported by checkpatch.pl
WARNING: Possible unnecessary 'out of memory' message
With no available memory, a warn on message already gets printed
by page alloc functions

Signed-off-by: Amit Kushwaha <kushwaha.nitt@xxxxxxxxx>
---
 drivers/staging/wilc1000/host_interface.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/wilc1000/host_interface.c
b/drivers/staging/wilc1000/host_interface.c
index b00ea75..23abdd4 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -1691,7 +1691,6 @@ static int Handle_Key(struct wilc_vif *vif,
  } else if (pstrHostIFkeyAttr->action & ADDKEY) {
  pu8keybuf = kmalloc(PTK_KEY_MSG_LEN, GFP_KERNEL);
  if (!pu8keybuf) {
- netdev_err(vif->ndev, "No buffer send PTK\n");
  ret = -ENOMEM;
  goto _WPAPtk_end_case_;
  }
-- 
2.10.2.windows.1
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux