summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/Makefile
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-10-02 11:21:12 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-10-02 11:44:19 -0700
commitd6f0c3d3a815aca40f1ea9daf6ed0d1f9e243185 (patch)
treec48b040487faf5ff535aa26937793610cdf40ade /drivers/input/touchscreen/Makefile
parentc4517f82d23eb72bf0768257bccc5f326c9ceada (diff)
downloadlinux-stable-d6f0c3d3a815aca40f1ea9daf6ed0d1f9e243185.tar.gz
linux-stable-d6f0c3d3a815aca40f1ea9daf6ed0d1f9e243185.tar.bz2
linux-stable-d6f0c3d3a815aca40f1ea9daf6ed0d1f9e243185.zip
Input: cyttsp - use PTR_ERR_OR_ZERO()
The PTR_ERR_OR_ZERO() helper function checks if a pointer contains an errno code and returns it or return 0 if that's not the case. Use the helper instead of open coding the same logic in the driver. This was found with make coccicheck that complains with the following warning: drivers/input/touchscreen/cyttsp4_i2c.c:53:1-3: WARNING: PTR_ERR_OR_ZERO can be used Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/Makefile')
0 files changed, 0 insertions, 0 deletions