]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
b43legacy: properly fix a bogus gcc warning
authorFrank Lichtenheld <frank@lichtenheld.de>
Sat, 24 Nov 2007 20:11:08 +0000 (21:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:05:02 +0000 (15:05 -0800)
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>
drivers/net/wireless/b43legacy/debugfs.c

index 619b4534ef09b24a9c1512106c2002c83ad7354e..03ce0821a60eb86e9f327675c9069bc1b64ecb1b 100644 (file)
@@ -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);