cfg80211: remove superfluous !last_request check in reg_device_remove()
authorChris Wright <chrisw@sous-sol.org>
Fri, 24 Apr 2009 21:09:31 +0000 (14:09 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:14:40 +0000 (15:14 -0400)
commit0ef9ccdd9ec7f2cf28d0605c216d853687f5291d
tree0056421d720d214ba49452d481325ce8156109e7
parent2cfb1f5e20f260e6ff306ba181efee956ba48f54
cfg80211: remove superfluous !last_request check in reg_device_remove()

Commit 0ad8acaf "cfg80211: fix NULL pointer deference in
reg_device_remove()" added a check that last_request is non-NULL,
rendering the 2nd check superfluous.  While there, rearrange the code a
bit so it's a little more straight forward.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c