]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minor cleanup to mesh state locking
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Nov 2011 14:27:31 +0000 (15:27 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Nov 2011 21:20:48 +0000 (16:20 -0500)
commitbcb68bd967efc5540ea8b25c015c68edf0c94d43
treebb569e62b8845b96c70561e9dbf893f6a126bb79
parentadc9b1aa7f973a2cee7df42a9e7f2f9c6ce98a11
mac80211: minor cleanup to mesh state locking

First time I tried smatch, and it says:
mesh_hwmp.c +870 mesh_queue_preq(21) error: double lock 'bottom_half:'
mesh_hwmp.c +873 mesh_queue_preq(24) error: double unlock 'bottom_half:'
mesh_hwmp.c +886 mesh_queue_preq(37) error: double unlock 'bottom_half:'

Which is indeed true -- there's no point in disabling BHs
again if we just did that a few lines earlier, so remove.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh_hwmp.c