[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAHnt0GUVfQ_LNj-2qdL4UF-ET+fq5BupwxfeBNYqMk9wfRznVQ@mail.gmail.com>
Date: Mon, 16 Mar 2015 22:15:04 +0800
From: Peter Teoh <htmldeveloper@...il.com>
To: Stefano Brivio <stefano.brivio@...imi.it>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 2/5] drivers/net/wireless/b43/debugfs.c: don't use unmodified
return variable name
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@...il.com
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists