From e83d2fac784291d5bf72d44ea259aa501b6fda00 Mon Sep 17 00:00:00 2001 From: Ajay Singh Date: Wed, 2 May 2018 12:43:28 +0530 Subject: [PATCH] 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 --- 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 67177766f2f5..d5ed484e0b82 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; } -- 2.30.2