Hello Ferruh Yigit,

The patch 67bf12ca50d5: "Input: cyttsp4 - SPI driver for Cypress
TMA4XX touchscreen devices" from Jun 30, 2013, leads to the following
Smatch warning:
"drivers/input/touchscreen/cyttsp4_spi.c:66 cyttsp_spi_xfer()
         warn: impossible condition '(reg > 255) => (0-255 > 255)'"

drivers/input/touchscreen/cyttsp4_spi.c
    66          if (reg > 255)
                    ^^^^^^^^^
"reg" is unsigned char so 255 is the max it can be.
    67                  wr_buf[0] = op + CY_SPI_A8_BIT;
    68          else
    69                  wr_buf[0] = op;

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to