From e27604efde9e8e296b78e5d2b1ee27838b289626 Mon Sep 17 00:00:00 2001 From: Anchal Jain Date: Fri, 11 Mar 2016 19:49:50 +0530 Subject: 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(-) (limited to 'drivers/staging/wilc1000') diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index a670cb73f840..fd938fb43dd3 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; -- cgit v1.2.3