aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/debugfs.c
diff options
context:
space:
mode:
authorFrank Lichtenheld <frank@lichtenheld.de>2007-11-12 05:12:52 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:38 -0500
commit7223e8d900d415fe128152d7a4061501b7593d37 (patch)
treeba74f76b6c30769e9623132b679e1a1d92824d11 /drivers/net/wireless/b43/debugfs.c
parent59f1b154653d961d3ace72a4a5311c395cf7d779 (diff)
b43: silence a bogus gcc warning
use uninitialized_var() to avoid the following bogus warning: CC [M] drivers/net/wireless/b43/debugfs.o drivers/net/wireless/b43/debugfs.c: In function ‘b43_debugfs_read’: drivers/net/wireless/b43/debugfs.c:355: warning: ‘ret’ may be used uninitialized in this function Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/debugfs.c')
-rw-r--r--drivers/net/wireless/b43/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/debugfs.c b/drivers/net/wireless/b43/debugfs.c
index ef0075d9f9cb..f84d06382632 100644
--- a/drivers/net/wireless/b43/debugfs.c
+++ b/drivers/net/wireless/b43/debugfs.c
@@ -352,7 +352,7 @@ static ssize_t b43_debugfs_read(struct file *file, char __user *userbuf,
352 struct b43_wldev *dev; 352 struct b43_wldev *dev;
353 struct b43_debugfs_fops *dfops; 353 struct b43_debugfs_fops *dfops;
354 struct b43_dfs_file *dfile; 354 struct b43_dfs_file *dfile;
355 ssize_t ret; 355 ssize_t uninitialized_var(ret);
356 char *buf; 356 char *buf;
357 const size_t bufsize = 1024 * 128; 357 const size_t bufsize = 1024 * 128;
358 const size_t buforder = get_order(bufsize); 358 const size_t buforder = get_order(bufsize);