OSDN Git Service

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)
commit391f544e355d442c8a58d395ef64d01dea47ac8d
treebcf494dd8354ffe37873d034439ebc3b78969af6
parent060ea4271a82270be6d44e8e9aefe8f155fb5626
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