From: Ajay Singh Date: Wed, 2 May 2018 07:13:28 +0000 (+0530) Subject: staging: wilc1000: remove unnecessary 'out of memory' message in handle_key() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e83d2fac784291d5bf72d44ea259aa501b6fda00;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 67177766f2f58..d5ed484e0b82f 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/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; }