staging: rtl8723au: core: rtw_recv: use list_first_entry_or_null()
commit8584394bdf9bd4d18cd7fc43e5221ff71539cf4a
authorGeliang Tang <geliangtang@163.com>
Tue, 1 Mar 2016 15:35:31 +0000 (1 23:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2016 03:44:34 +0000 (10 19:44 -0800)
tree19036d6ada7e33095f0d9a2e749fb3935f67de7c
parent7bf777fbfe7926398063bf669c672e52b28b69d2
staging: rtl8723au: core: rtw_recv: 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_recv.c