mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
staging: wilc1000: Possible unnecessary 'out of memory' message
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>
This commit is contained in:
parent
1f12f14807
commit
e27604efde
@ -320,10 +320,8 @@ static int wilc_wlan_txq_add_cfg_pkt(struct wilc_vif *vif, u8 *buffer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
tqe = kmalloc(sizeof(*tqe), GFP_ATOMIC);
|
tqe = kmalloc(sizeof(*tqe), GFP_ATOMIC);
|
||||||
if (!tqe) {
|
if (!tqe)
|
||||||
netdev_err(vif->ndev, "Failed to allocate memory\n");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
tqe->type = WILC_CFG_PKT;
|
tqe->type = WILC_CFG_PKT;
|
||||||
tqe->buffer = buffer;
|
tqe->buffer = buffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user