Commit e27604ef authored by Anchal Jain's avatar Anchal Jain Committed by Greg Kroah-Hartman

staging: wilc1000: Possible unnecessary 'out of memory' message

Remove unnnecessary debug message.
Problem detected by checkpatch.
Signed-off-by: default avatarAnchal Jain <anchalj109@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1f12f148
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment