On Mon, Feb 22, 2016 at 09:39:15PM -0500, Jes Sorensen wrote:
> Geliang Tang <geliangt...@163.com> writes:
> > Use list_first_entry*() instead of container_of() to simplify the code.
> >
> > Signed-off-by: Geliang Tang <geliangt...@163.com>
> > ---
> >  drivers/staging/rtl8723au/core/rtw_recv.c | 49 
> > +++++++++----------------------
> >  drivers/staging/rtl8723au/core/rtw_xmit.c | 26 +++++-----------
> >  2 files changed, 22 insertions(+), 53 deletions(-)
> 
> This looks fine to me. When these changes gets large, it may be better
> to break them down into multiple patches as it's easier to debug if
> there is a bug somewhere.
>

Changes in v2:
 - split it into three patches.

Geliang Tang (3):
  staging: rtl8723au: core: rtw_recv: use list_first_entry_or_null()
  staging: rtl8723au: core: rtw_xmit: use list_first_entry_or_null()
  staging: rtl8723au: core: rtw_recv: use list_first_entry()

 drivers/staging/rtl8723au/core/rtw_recv.c | 47 +++++++++----------------------
 drivers/staging/rtl8723au/core/rtw_xmit.c | 26 ++++++-----------
 2 files changed, 21 insertions(+), 52 deletions(-)

-- 
2.5.0


Reply via email to