mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 13:43:21 -04:00
staging: wilc1000: remove unnecessary 'out of memory' message in handle_key()
Fix "Possible unnecessary 'out of memory' message" issue reported by checkpatch.pl script. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
026e14ae39
commit
e83d2fac78
@@ -1707,7 +1707,6 @@ static int handle_key(struct wilc_vif *vif, struct key_attr *hif_key)
|
||||
} else if (hif_key->action & ADDKEY) {
|
||||
key_buf = kmalloc(PTK_KEY_MSG_LEN, GFP_KERNEL);
|
||||
if (!key_buf) {
|
||||
netdev_err(vif->ndev, "No buffer send PTK\n");
|
||||
ret = -ENOMEM;
|
||||
goto out_wpa_ptk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user