]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: Possible unnecessary 'out of memory' message
authorAnchal Jain <anchalj109@gmail.com>
Fri, 11 Mar 2016 14:19:50 +0000 (19:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
Remove unnnecessary debug message.
Problem detected by checkpatch.

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index a670cb73f840611789686578957d0ba0a4d8a406..fd938fb43dd3c7964b66ed5e7cf4dad951cfd524 100644 (file)
@@ -320,10 +320,8 @@ static int wilc_wlan_txq_add_cfg_pkt(struct wilc_vif *vif, u8 *buffer,
        }
 
        tqe = kmalloc(sizeof(*tqe), GFP_ATOMIC);
-       if (!tqe) {
-               netdev_err(vif->ndev, "Failed to allocate memory\n");
+       if (!tqe)
                return 0;
-       }
 
        tqe->type = WILC_CFG_PKT;
        tqe->buffer = buffer;