ath9k: Delete an unnecessary check before the function call "relay_close"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 4 Feb 2015 17:48:28 +0000 (18:48 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 6 Feb 2015 06:49:22 +0000 (08:49 +0200)
commitc0420ea0b598021302b1e1f0f28d621f93968e5d
tree4c87442c29e9bdd4cbf51d85327236f2724e6298
parentee4ddad82356116351660b0adfcb8e837eda371f
ath9k: Delete an unnecessary check before the function call "relay_close"

The relay_close() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/common-spectral.c