dma: dw: improve comparison with ~0