提交 7343f621 编写于 作者: M Mihaela Muraru 提交者: 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: NMihaela Muraru <mihaela.muraru21@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册