]> git.baikalelectronics.ru Git - kernel.git/commit
dma: dw: improve comparison with ~0
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Jul 2013 12:04:38 +0000 (15:04 +0300)
committerVinod Koul <vinod.koul@intel.com>
Mon, 5 Aug 2013 04:02:26 +0000 (09:32 +0530)
commit96453e07d18997feaa140509f9d16cd6a710d947
treeaaf83ae86afe26730c4ab70b68b5dda57c0784fe
parentbc7d7d04e94fb1c4c6badb43e682b2470a675c0f
dma: dw: improve comparison with ~0

In general ~0 does not fit some integer types. Let's do a helper to make a
comparison with that constant properly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/core.c