Staging: wilc1000: Unnecessary 'out of memory' message

This patch fixes checkpatch.pl warning in file host_interface.c
WARNING : possible unecessary 'out of memory' message.

Signed-off-by: Mihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mihaela Muraru 2016-10-10 11:13:14 +03:00 committed by Greg Kroah-Hartman
parent 14e6cc71bc
commit 7343f6215a
1 changed files with 1 additions and 3 deletions

View File

@ -1722,10 +1722,8 @@ _WPAPtk_end_case_:
case PMKSA:
pu8keybuf = kmalloc((pstrHostIFkeyAttr->attr.pmkid.numpmkid * PMKSA_KEY_LEN) + 1, GFP_KERNEL);
if (!pu8keybuf) {
netdev_err(vif->ndev, "No buffer to send PMKSA Key\n");
if (!pu8keybuf)
return -ENOMEM;
}
pu8keybuf[0] = pstrHostIFkeyAttr->attr.pmkid.numpmkid;