dmaengine: Save few bytes and increase readability of dma_request_chan()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 28 Aug 2020 14:45:19 +0000 (17:45 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 3 Sep 2020 06:52:35 +0000 (12:22 +0530)
commit5d7e816e444569c9fdd901ecf0e3933a6ed9a501
tree9bc52ba7d49ba7459a6baa00133e1542370c61f5
parent7547dbd3b198f309aaff54e3528898a8a196faff
dmaengine: Save few bytes and increase readability of dma_request_chan()

Split IS_ERR_OR_NULL() check followed by additional conditional
to two simple conditionals. This increases readability and saves memory:

Function                                     old     new   delta
dma_request_chan                             700     697      -3
Total: Before=10224, After=10221, chg -0.03%

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200828144519.14483-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.c