* [PATCH v3 49/49] Input: atmel_mxt_ts - Fix compilation warning
@ 2019-09-17 9:44 Jiada Wang
0 siblings, 0 replies; only message in thread
From: Jiada Wang @ 2019-09-17 9:44 UTC (permalink / raw)
To: nick, dmitry.torokhov, jikos, benjamin.tissoires, rydberg
Cc: linux-input, linux-kernel, jiada_wang
fix "make W=1" compilation warnings from Atmel driver
as per the compilation logs.
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
---
drivers/input/touchscreen/atmel_mxt_ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index ff6d3ed58604..511ad2bb6b07 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -2049,7 +2049,7 @@ static int mxt_prepare_cfg_mem(struct mxt_data *data, struct mxt_cfg *cfg)
byte_offset = reg + i - cfg->start_ofs;
- if (byte_offset >= 0 && byte_offset < cfg->mem_size) {
+ if (byte_offset < cfg->mem_size) {
*(cfg->mem + byte_offset) = val;
} else {
dev_err(dev, "Bad object: reg:%d, T%d, ofs=%d\n",
--
2.19.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-17 9:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-17 9:44 [PATCH v3 49/49] Input: atmel_mxt_ts - Fix compilation warning Jiada Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®