diff options
author | Anchal Jain <anchalj109@gmail.com> | 2016-03-11 19:49:50 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | e27604efde9e8e296b78e5d2b1ee27838b289626 (patch) | |
tree | 8081c4fce969601f79c18056b38004824357395b /drivers/staging/wilc1000/wilc_wlan.c | |
parent | staging: wilc1000: use mutex instead of semaphore sem_cfg_values (diff) | |
download | linux-dev-e27604efde9e8e296b78e5d2b1ee27838b289626.tar.xz linux-dev-e27604efde9e8e296b78e5d2b1ee27838b289626.zip |
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>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |