dmaengine: dmatest: Return boolean result directly in filter()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Sep 2020 11:58:47 +0000 (14:58 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 22 Sep 2020 14:48:41 +0000 (20:18 +0530)
commitda75ba2482658a0d9ea5245fadfea6b464fab7a3
tree8ce03f408fb42a2b3f55b5ac432b53469c85ffdb
parentb28de385b71abf31ce68ec0387638bee26ae9024
dmaengine: dmatest: Return boolean result directly in filter()

There is no need to have a conditional for boolean expression when
function returns bool. Drop unnecessary code and return boolean
result directly.

While at it, drop unneeded casting from void *.

Cc: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200922115847.30100-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmatest.c