From: Mihaela Muraru Date: Mon, 10 Oct 2016 08:13:14 +0000 (+0300) Subject: Staging: wilc1000: Unnecessary 'out of memory' message X-Git-Tag: v4.10-rc1~148^2~618 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7343f6215a9d1f90be3ba95a058707ce6cb5980f;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 0d16e49a9656..ff3d267c2eb0 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -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;