linux-4.8-rc1/drivers/dma/txx9dmac.c: 2 * pointless expression ?

From: David Binderman
Date: Mon Aug 08 2016 - 09:42:53 EST


Hello there,

1,

linux-4.8-rc1/drivers/dma/txx9dmac.c:751]: (style) Expression '(X &
0x7f) <= 0x7f' is always true.

Source code is

if (xfer_count > 0x80 &&
(xfer_count & 0x7f) >= 0x7e &&
(xfer_count & 0x7f) <= 0x7f)

2.

inux-4.8-rc1/drivers/dma/txx9dmac.c:746]: (style) Expression '(X &
0xff) <= 0xff' is always true.

Duplicate, a few lines earlier.

Regards

David Binderman