staging: rtl8188eu: use list_first_entry_or_null()
authorGeliang Tang <geliangtang@163.com>
Mon, 1 Feb 2016 14:37:13 +0000 (22:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:00:46 +0000 (19:00 -0800)
commitb9f1c275b695ff9339cfd0c2ea841f53d4205611
tree9e8eb01f88f6764d23d5388234cf3ce646342bc0
parenta67080ee826467cbcb9691418126607bb0d1e33e
staging: rtl8188eu: use list_first_entry_or_null()

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

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8188eu/core/rtw_sta_mgt.c
drivers/staging/rtl8188eu/core/rtw_xmit.c