From: Frank Lichtenheld Date: Sat, 24 Nov 2007 20:11:08 +0000 (+0100) Subject: b43legacy: properly fix a bogus gcc warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=125c5cc2c8c1fab6a6a1d8a07f7073b240e6d325;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 619b4534ef0..03ce0821a60 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);