]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: clean up an ieee80211_do_open error path
authorJohannes Berg <johannes.berg@intel.com>
Tue, 3 Apr 2012 12:45:54 +0000 (14:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Apr 2012 20:23:51 +0000 (16:23 -0400)
commit5094d4daf4896b7e36f28dd4f6dfadd187621841
tree4415934f1ea4b3ab0b2df135510640100437e71c
parent4b580910c25c6f2c29a97d724efa0e4556f4d306
mac80211: clean up an ieee80211_do_open error path

Eliad's comment prompted me to look closer at
the error paths in ieee80211_do_open() and I
found one that should use the error labels.

Also add a comment about the clear_bit since
in many error cases the bit hasn't been set.

Cc: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c