Explorar o código

staging: wilc1000: remove unnecessary 'out of memory' message in handle_key()

Fix "Possible unnecessary 'out of memory' message" issue reported by
checkpatch.pl script.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Ajay Singh %!s(int64=7) %!d(string=hai) anos
pai
achega
e83d2fac78
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      drivers/staging/wilc1000/host_interface.c

+ 0 - 1
drivers/staging/wilc1000/host_interface.c

@@ -1707,7 +1707,6 @@ out_wpa_rx_gtk:
 		} else if (hif_key->action & ADDKEY) {
 			key_buf = kmalloc(PTK_KEY_MSG_LEN, GFP_KERNEL);
 			if (!key_buf) {
-				netdev_err(vif->ndev, "No buffer send PTK\n");
 				ret = -ENOMEM;
 				goto out_wpa_ptk;
 			}