]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: mvm: don't store section offset/length in debugfs
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 May 2013 11:08:51 +0000 (13:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 16 May 2013 21:17:49 +0000 (23:17 +0200)
commit60191d99a9a472aef07d9e023f47a2503ae51f00
tree2dd0958b74f5879f1105fe402fea335df294d648
parent4f59334bb4a626b91ea31f2bb3515e6a586ea1ae
iwlwifi: mvm: don't store section offset/length in debugfs

When different images can (soon) be accessed through this
file, storing the section offset/length on first access to
the file breaks (or needs manual reset). Avoid this by not
storing the offset/length values but using them locally in
the function only. That way, the correct values are always
used.

While at it, correct the check that firmware is loaded.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c