From e27604efde9e8e296b78e5d2b1ee27838b289626 Mon Sep 17 00:00:00 2001 From: Anchal Jain Date: Fri, 11 Mar 2016 19:49:50 +0530 Subject: [PATCH] staging: wilc1000: Possible unnecessary 'out of memory' message Remove unnnecessary debug message. Problem detected by checkpatch. Signed-off-by: Anchal Jain Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/wilc_wlan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index a670cb7..fd938fb 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -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; -- 2.7.4