staging: rtl8712: use list_first_entry_or_null()
commit818ff7b28b7777ac71d13215bc7a332e126da268
authorGeliang Tang <geliangtang@163.com>
Mon, 1 Feb 2016 14:47:03 +0000 (1 22:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:53:04 +0000 (7 19:53 -0800)
treecd16f34705947eb6775369996e83d15fcc66944a
parent97e2ba90fc89f375e88ad5d825c149fb82d8207b
staging: rtl8712: use list_first_entry_or_null()

Use list_first_entry_or_null() instead of list_empty() + LIST_CONTAINOR()
to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_cmd.c
drivers/staging/rtl8712/rtl871x_mlme.c
drivers/staging/rtl8712/rtl871x_recv.c
drivers/staging/rtl8712/rtl871x_sta_mgt.c
drivers/staging/rtl8712/rtl871x_xmit.c