From: Arend van Spriel Date: Wed, 5 Dec 2012 14:25:55 +0000 (+0100) Subject: brcmsmac: fix uninitialized variable warning on arm architecture X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~17^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8df4901b351f5cac83cce78749e93215fa25ed9;p=pandora-kernel.git brcmsmac: fix uninitialized variable warning on arm architecture Using gcc v4.7.2 gave following warning: CC [M] drivers/net/wireless/brcm80211/brcmsmac/aiutils.o brcmsmac/aiutils.c: In function 'ai_deviceremoved': brcmsmac/aiutils.c:733:9: error: 'w' may be used uninitialized in this function [-Werror=uninitialized] Inspection of the pci_read_config_dword() function showed it can return without modifying the output variable 'w' so this patch initializes it to 0. Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Piotr Haber Reviewed-by: Hante Meuleman Signed-off-by: Arend van Spriel Signed-off-by: John W. Linville --- Reading git-diff-tree failed