]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: cleanup with list_first_entry_or_null()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 12 Sep 2016 18:08:17 +0000 (03:08 +0900)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Sep 2016 13:40:46 +0000 (19:10 +0530)
commit11d9f837428ec45e4355d91ed48acd09d7c0a824
tree8afea3d372107ddc4f45b4c903fad056f58a0626
parentd120684984b7eb9e133aa6eaa5c11f54079411f9
dmaengine: cleanup with list_first_entry_or_null()

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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/coh901318.c
drivers/dma/ep93xx_dma.c
drivers/dma/ste_dma40.c
drivers/dma/virt-dma.h