ath10k: delete unnecessary checks before the function call "release_firmware"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 4 Feb 2015 18:30:23 +0000 (19:30 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 4 Mar 2015 12:05:40 +0000 (14:05 +0200)
commitdb2cf865c75792f2e52596bf3e94e9a98272becf
treebbb9758b8a632e389e98337b60376c0b23214f2b
parent139e170da98a23c3ce9ecb68cf042bdad10ce647
ath10k: delete unnecessary checks before the function call "release_firmware"

The release_firmware() 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@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c