]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Remove superfluous if clause
authorHelmut Schaa <helmut.schaa@googlemail.com>
Sat, 12 Feb 2011 13:17:15 +0000 (14:17 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Feb 2011 20:51:20 +0000 (15:51 -0500)
commit2f34e61cb5d041ad078dd35ae0cf7f06cf0ec56e
tree1c035db946d3114273c5f5b555d119dfc49899a4
parent25ad99c21081c7cb2806468711bce10a74da2bb2
mac80211: Remove superfluous if clause

ieee80211_rx_h_check returned RX_DROP_MONITOR in case the if statement
in question was true but the same return value is also used directly
after the if clause. Hence, we can just drop the whole if clause and as
such simplify the code.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c