Message ID | 1606113428-21462-1-git-send-email-kaixuxia@tencent.com |
---|---|
State | New |
Headers | show |
Series | Input: synaptics-rmi4 - remove the useless unsigned variable compared with zero | expand |
diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c index 258d5fe3d395..e7c9300417e3 100644 --- a/drivers/input/rmi4/rmi_driver.c +++ b/drivers/input/rmi4/rmi_driver.c @@ -580,7 +580,7 @@ int rmi_read_register_desc(struct rmi_device *d, u16 addr, return ret; ++addr; - if (size_presence_reg < 0 || size_presence_reg > 35) + if (size_presence_reg > 35) return -EIO; memset(buf, 0, sizeof(buf));