From: Anchal Jain Date: Fri, 11 Mar 2016 14:19:50 +0000 (+0530) Subject: staging: wilc1000: Possible unnecessary 'out of memory' message X-Git-Tag: v4.6-rc1~103^2~218 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e27604efde9e8e296b78e5d2b1ee27838b289626;p=karo-tx-linux.git 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 --- 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;