Commit 7343f621 authored by Mihaela Muraru's avatar Mihaela Muraru Committed by Greg Kroah-Hartman

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: default avatarMihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 14e6cc71
...@@ -1722,10 +1722,8 @@ static int Handle_Key(struct wilc_vif *vif, ...@@ -1722,10 +1722,8 @@ static int Handle_Key(struct wilc_vif *vif,
case PMKSA: case PMKSA:
pu8keybuf = kmalloc((pstrHostIFkeyAttr->attr.pmkid.numpmkid * PMKSA_KEY_LEN) + 1, GFP_KERNEL); pu8keybuf = kmalloc((pstrHostIFkeyAttr->attr.pmkid.numpmkid * PMKSA_KEY_LEN) + 1, GFP_KERNEL);
if (!pu8keybuf) { if (!pu8keybuf)
netdev_err(vif->ndev, "No buffer to send PMKSA Key\n");
return -ENOMEM; return -ENOMEM;
}
pu8keybuf[0] = pstrHostIFkeyAttr->attr.pmkid.numpmkid; pu8keybuf[0] = pstrHostIFkeyAttr->attr.pmkid.numpmkid;
......
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