summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFrank Lichtenheld <frank@lichtenheld.de>2007-11-24 21:11:08 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:05:02 -0800
commit125c5cc2c8c1fab6a6a1d8a07f7073b240e6d325 (patch)
tree7e58cb6de1dcbd5f08c0cac7f64670ea593c3a43 /drivers/net
parent013978b688d2a27af3ab55ca739e8c8ac7254870 (diff)
downloadblackbird-op-linux-125c5cc2c8c1fab6a6a1d8a07f7073b240e6d325.tar.gz
blackbird-op-linux-125c5cc2c8c1fab6a6a1d8a07f7073b240e6d325.zip
b43legacy: properly fix a bogus gcc warning
Use initialized_var() to properly fix a bogus gcc warning. Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it> Cc: Frank Lichtenheld <frank@lichtenheld.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/b43legacy/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43legacy/debugfs.c b/drivers/net/wireless/b43legacy/debugfs.c
index 619b4534ef09..03ce0821a60e 100644
--- a/drivers/net/wireless/b43legacy/debugfs.c
+++ b/drivers/net/wireless/b43legacy/debugfs.c
@@ -209,7 +209,7 @@ static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf,
struct b43legacy_wldev *dev;
struct b43legacy_debugfs_fops *dfops;
struct b43legacy_dfs_file *dfile;
- ssize_t ret = 0;
+ ssize_t uninitialized_var(ret);
char *buf;
const size_t bufsize = 1024 * 128;
const size_t buforder = get_order(bufsize);
OpenPOWER on IntegriCloud