dmaengine: Refactor dmaengine_check_align() to be bit operations only
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 26 Feb 2020 10:18:38 +0000 (12:18 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Mar 2020 07:18:13 +0000 (12:48 +0530)
commit88ac039cbed125bd9ed132d27ec9f689c6442748
tree5a69f0271182cb6fee96f223182739a6efd0d4fb
parent9065958ee6dd752c7e1bbacbb79fe5f5f2218393
dmaengine: Refactor dmaengine_check_align() to be bit operations only

There is no need to have branch and temporary variable in the function.
Simple convert it to be a set of bit and arithmetic operations.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200226101842.29426-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/dmaengine.h