staging: wilc1000: remove unnecessary 'out of memory' message in handle_key()
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 2 May 2018 07:13:28 +0000 (12:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 May 2018 20:56:34 +0000 (13:56 -0700)
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>
drivers/staging/wilc1000/host_interface.c

index 6717776..d5ed484 100644 (file)
@@ -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;
                        }