staging: rtl8723au: core: rtw_xmit: use list_first_entry_or_null()
authorGeliang Tang <geliangtang@163.com>
Tue, 1 Mar 2016 15:35:32 +0000 (23:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2016 03:44:34 +0000 (19:44 -0800)
commit2cb5780a41714ef91a47b8e33eb7f59ac30c6346
treec2068a42122956745d1efdd3e7d40886a09d851d
parent8584394bdf9bd4d18cd7fc43e5221ff71539cf4a
staging: rtl8723au: core: rtw_xmit: 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>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_xmit.c