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

Signed-off-by: Peter Teoh <[email protected]

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to