Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2628118b authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman
Browse files

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: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 55e43d1f
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -96,10 +96,8 @@ int mei_amthif_host_init(struct mei_device *dev)
	/* allocate storage for ME message buffer */
	/* allocate storage for ME message buffer */
	msg_buf = kcalloc(dev->iamthif_mtu,
	msg_buf = kcalloc(dev->iamthif_mtu,
			sizeof(unsigned char), GFP_KERNEL);
			sizeof(unsigned char), GFP_KERNEL);
	if (!msg_buf) {
	if (!msg_buf)
		dev_err(&dev->pdev->dev, "amthif: memory allocation for ME message buffer failed.\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	dev->iamthif_msg_buf = msg_buf;
	dev->iamthif_msg_buf = msg_buf;


+0 −1
Original line number Original line Diff line number Diff line
@@ -126,7 +126,6 @@ static int mei_cl_irq_read_msg(struct mei_device *dev,
					  GFP_KERNEL);
					  GFP_KERNEL);


			if (!buffer) {
			if (!buffer) {
				cl_err(dev, cl, "allocation failed.\n");
				list_del(&cb->list);
				list_del(&cb->list);
				return -ENOMEM;
				return -ENOMEM;
			}
			}
+0 −1
Original line number Original line Diff line number Diff line
@@ -377,7 +377,6 @@ static ssize_t mei_write(struct file *file, const char __user *ubuf,


	write_cb = mei_io_cb_init(cl, file);
	write_cb = mei_io_cb_init(cl, file);
	if (!write_cb) {
	if (!write_cb) {
		dev_err(&dev->pdev->dev, "write cb allocation failed\n");
		rets = -ENOMEM;
		rets = -ENOMEM;
		goto out;
		goto out;
	}
	}