OSDN Git Service

spi: core: Use list_first_entry_or_null() instead of open-coded
authorAxel Lin <axel.lin@ingics.com>
Thu, 2 Jan 2014 07:16:40 +0000 (15:16 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 2 Jan 2014 11:57:26 +0000 (11:57 +0000)
commit1cfd97f93e36b3f8b5d2a26147aaccae0c847a9c
tree4b05b4acdd1ab493a55eba62a1e87d68ea7f112e
parent368ca4e0c75612c0a4d6bbcef7efb944604340c2
spi: core: Use list_first_entry_or_null() instead of open-coded

Use list_first_entry_or_null() to save a few lines.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi.c