Files
linux-apfs/drivers/input/touchscreen
Javier Martinez Canillas c4517f82d2 Input: ads7846 - 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/ads7846.c:532: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>
2015-10-02 11:44:19 -07:00
..
2015-09-03 10:01:44 -07:00
2015-07-20 10:08:17 -07:00
2015-08-24 10:55:24 -07:00
2015-07-27 22:28:19 -07:00
2015-08-21 19:27:23 +02:00