iwlwifi: mvm: don't return uninitialized value in get_survey()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Apr 2015 08:00:31 +0000 (10:00 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 2 Apr 2015 06:29:12 +0000 (09:29 +0300)
If ucode_loaded isn't true the function returns the 'ret' variable
without having assigned a value properly. Fix that.

Reported-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>

No differences found