diff options
author | Tomas Winkler | 2014-09-29 15:31:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-09-29 17:56:01 +0200 |
commit | 2628118b60b9d5bb4c580a1d5973a8e1d31a50f2 (patch) | |
tree | dadb0689a269a4288e6bd78394beb8f194bc9d62 /drivers/misc/mei/amthif.c | |
parent | mei: nfc: fix style warning (diff) | |
download | kernel-qcow2-linux-2628118b60b9d5bb4c580a1d5973a8e1d31a50f2.tar.gz kernel-qcow2-linux-2628118b60b9d5bb4c580a1d5973a8e1d31a50f2.tar.xz kernel-qcow2-linux-2628118b60b9d5bb4c580a1d5973a8e1d31a50f2.zip |
mei: kill error message for allocation failure
There is no need to log memory allocation errors as
this is already done by the memory subsystem.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/amthif.c')
-rw-r--r-- | drivers/misc/mei/amthif.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c index 46241a6d79e7..1f80873c8fe9 100644 --- a/drivers/misc/mei/amthif.c +++ b/drivers/misc/mei/amthif.c @@ -96,10 +96,8 @@ int mei_amthif_host_init(struct mei_device *dev) /* allocate storage for ME message buffer */ msg_buf = kcalloc(dev->iamthif_mtu, sizeof(unsigned char), GFP_KERNEL); - if (!msg_buf) { - dev_err(&dev->pdev->dev, "amthif: memory allocation for ME message buffer failed.\n"); + if (!msg_buf) return -ENOMEM; - } dev->iamthif_msg_buf = msg_buf; |