[PATCH 2/5] drivers/net/wireless/b43/debugfs.c: don't use unmodified return variable name

From: Peter Teoh
Date: Mon Mar 16 2015 - 11:45:39 EST


Discovered by Coccinelle. Removed the use of variable for storing
returning values, which is un-modified / un-used throughout.

Signed-off-by: Peter Teoh <htmldeveloper@xxxxxxxxx

diff -u -p a/drivers/net/wireless/b43/debugfs.c
b/drivers/net/wireless/b43/debugfs.c
--- a/drivers/net/wireless/b43/debugfs.c
+++ b/drivers/net/wireless/b43/debugfs.c
@@ -363,7 +363,6 @@ static ssize_t txstat_read_file(struct b
char *buf, size_t bufsize)
{
struct b43_txstatus_log *log = &dev->dfsentry->txstatlog;
- ssize_t count = 0;
int i, idx;
struct b43_txstatus *stat;

@@ -401,7 +400,7 @@ static ssize_t txstat_read_file(struct b
}
out:

- return count;
+ return 0;
}

static int restart_write_file(struct b43_wldev *dev,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/