]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: remove unnecessary NULL check
authorHimadri Pandya <himadri18.07@gmail.com>
Wed, 3 Apr 2019 16:08:16 +0000 (21:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Apr 2019 11:31:58 +0000 (13:31 +0200)
commit2a2eb014909f735b31e1e87731f8747c860aecdc
treebcf494dd8354ffe37873d034439ebc3b78969af6
parent8f0f4ac24bea78a771c6a92610345ac755eb2269
staging: rtl8712: remove unnecessary NULL check

List wlan_network is built properly with init_list_head and
list_add_tail which cancels out its probability of being NULL because of
the precence of list_head at the top of this structure. Hence, the NULL
test can be omitted.

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_mlme.c