[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87wpieolws.fsf@eliezer.anholt.net>
Date: Wed, 14 Sep 2016 10:44:51 +0100
From: Eric Anholt <eric@...olt.net>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>,
David Airlie <airlied@...ux.ie>,
"open list\:DRM DRIVERS" <dri-devel@...ts.freedesktop.org>
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/vc4: cleanup with list_first_entry_or_null()
Masahiro Yamada <yamada.masahiro@...ionext.com> writes:
> The combo of list_empty() check and return list_first_entry()
> can be replaced with list_first_entry_or_null().
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
That's a nice little cleanup. Applied to -next. Thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (801 bytes)
Powered by blists - more mailing lists