linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: Input: cyttsp4 - SPI driver for Cypress TMA4XX touchscreen devices
@ 2013-07-02 21:47 Dan Carpenter
  2013-07-03 13:24 ` Ferruh Yigit
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Carpenter @ 2013-07-02 21:47 UTC (permalink / raw)
  To: fery; +Cc: linux-input

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-07  5:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-02 21:47 Input: cyttsp4 - SPI driver for Cypress TMA4XX touchscreen devices Dan Carpenter
2013-07-03 13:24 ` Ferruh Yigit
2013-07-03 13:52   ` Dan Carpenter
2013-07-03 20:36     ` [PATCH] Input: cyttsp4 - use 16bit address for I2C/SPI communication Ferruh Yigit
2013-07-04 12:25       ` Javier Martinez Canillas
2013-07-07  5:08       ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).