iwlwifi: fix unused variable warning
authorOliver Hartkopp <socketcan@hartkopp.net>
Sun, 25 Mar 2012 06:43:24 +0000 (08:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 18:54:02 +0000 (14:54 -0400)
commita855f7ee64fedbe831859d53b20650c2224afecc
treeb3dbb1b90939ae45ca1555ff864a43d9315fc674
parent227842d1176019512d24236f7fb894f0fadd30d1
iwlwifi: fix unused variable warning

In the case of disabled CONFIG_IWLWIFI_DEBUGFS option the compiler complains
about the unused variable 'img'. Fix this by moving the 'img' definition.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-mac80211.c