]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: do not check if reset is NULL
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 26 Sep 2016 18:56:24 +0000 (21:56 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 Sep 2016 12:11:52 +0000 (15:11 +0300)
commit1a9ea320781b383bf8a5e39284c6bf0e8d439d47
tree48d9cd752c375261f35dc0c6bca6d2f8be1fee43
parentb445bd2ea954fc8890709fdee8a936bc93b3a1fd
ath10k: do not check if reset is NULL

Since reset_control_get() never returns NULL, we can use IS_ERR()
instead of IS_ERR_OR_NULL().  The return statements can be simpler
as well.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/ahb.c