From: Frank Lichtenheld Date: Sat, 24 Nov 2007 20:11:08 +0000 (+0100) Subject: b43legacy: properly fix a bogus gcc warning X-Git-Tag: v2.6.25-rc1~1162^2~522 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=125c5cc2c8c1fab6a6a1d8a07f7073b240e6d325;p=linux-2.6 b43legacy: properly fix a bogus gcc warning Use initialized_var() to properly fix a bogus gcc warning. Signed-off-by: Stefano Brivio Cc: Frank Lichtenheld Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43legacy/debugfs.c b/drivers/net/wireless/b43legacy/debugfs.c index 619b4534ef..03ce0821a6 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);