Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1309055 > unrolled thread

[PATCH 2/4] mailbox: mailbox-test: Remove unused variable

Started byLee Jones <lee.jones@linaro.org>
First post2016-01-14 08:20 +0100
Last post2016-01-14 08:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/4] mailbox: mailbox-test: Remove unused variable Lee Jones <lee.jones@linaro.org> - 2016-01-14 08:20 +0100

#1309055 — [PATCH 2/4] mailbox: mailbox-test: Remove unused variable

FromLee Jones <lee.jones@linaro.org>
Date2016-01-14 08:20 +0100
Subject[PATCH 2/4] mailbox: mailbox-test: Remove unused variable
Message-ID<qQKmm-3Em-15@gated-at.bofh.it>
Even before it was unused, it always returned zero anyway.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 drivers/mailbox/mailbox-test.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mailbox/mailbox-test.c b/drivers/mailbox/mailbox-test.c
index 7d9b915..e370aa6 100644
--- a/drivers/mailbox/mailbox-test.c
+++ b/drivers/mailbox/mailbox-test.c
@@ -45,7 +45,6 @@ static ssize_t mbox_test_signal_write(struct file *filp,
 				       size_t count, loff_t *ppos)
 {
 	struct mbox_test_device *tdev = filp->private_data;
-	int ret;
 
 	if (!tdev->tx_channel) {
 		dev_err(tdev->dev, "Channel cannot do Tx\n");
@@ -69,7 +68,7 @@ static ssize_t mbox_test_signal_write(struct file *filp,
 		return -EFAULT;
 	}
 
-	return ret < 0 ? ret : count;
+	return count;
 }
 
 static const struct file_operations mbox_test_signal_ops = {
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web