Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1483152
| From | Eric Anholt <eric@anholt.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] drm/vc4: cleanup with list_first_entry_or_null() |
| Date | 2016-09-14 12:20 +0200 |
| Message-ID | <shfsm-830-7@gated-at.bofh.it> (permalink) |
| References | <sgEj8-72M-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Masahiro Yamada <yamada.masahiro@socionext.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@socionext.com> That's a nice little cleanup. Applied to -next. Thanks!
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] drm/vc4: cleanup with list_first_entry_or_null() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-09-12 20:40 +0200 Re: [PATCH] drm/vc4: cleanup with list_first_entry_or_null() Eric Anholt <eric@anholt.net> - 2016-09-14 12:20 +0200
csiph-web