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
..
2014-10-20 16:20:41 +02:00
2014-11-02 00:10:07 -07:00
2015-07-17 16:57:00 -07:00
2014-12-17 10:06:02 -08:00
2015-10-02 11:44:19 -07:00
2015-07-17 16:57:00 -07:00
2015-08-04 17:03:55 -07:00
2014-10-20 16:20:41 +02:00
2015-10-02 11:44:18 -07:00
2015-03-23 11:04:48 -07:00
2015-07-17 16:57:00 -07:00
2015-07-17 16:57:00 -07:00
2015-09-05 11:11:48 -07:00
2015-07-17 16:57:00 -07:00
2015-06-11 16:47:34 -07:00
2015-09-03 10:56:19 -07:00
2014-11-02 00:10:07 -07:00
2015-09-03 10:56:19 -07:00
2014-10-20 16:20:41 +02:00
2014-10-20 16:20:41 +02:00
2014-01-06 23:23:57 -08:00
2015-09-27 17:34:00 -07:00
2014-11-02 00:10:07 -07:00
2015-07-30 11:05:37 -07:00
2015-09-03 23:37:10 -07:00
2014-01-06 23:23:57 -08:00
2014-01-06 23:23:57 -08:00
2015-09-03 10:01:44 -07:00
2014-01-06 23:23:57 -08:00
2014-01-06 23:23:57 -08:00
2015-09-04 12:02:11 -07:00
2015-09-05 11:49:33 -07:00
2014-01-06 23:23:57 -08:00
2014-10-20 16:20:41 +02:00
2014-11-02 00:10:07 -07:00
2014-10-20 16:20:41 +02:00
2015-09-05 11:49:33 -07:00
2014-10-20 16:20:41 +02:00
2014-01-06 23:23:57 -08:00
2015-09-05 11:49:33 -07:00
2015-07-17 16:57:00 -07:00
2014-10-20 16:20:41 +02:00
2014-07-30 22:52:56 -07:00
2015-07-30 11:05:37 -07:00
2014-01-06 23:23:57 -08:00
2015-07-11 17:26:45 -07:00
2014-10-20 16:20:41 +02:00
2014-01-06 23:23:57 -08:00
2015-07-20 10:08:17 -07:00
2015-05-06 16:56:55 -07:00
2015-07-17 16:57:00 -07:00
2015-05-26 14:16:08 -07:00
2015-08-03 23:15:50 +08:00
2015-08-24 10:55:24 -07:00
2015-05-13 10:29:33 -07:00
2015-02-03 11:50:39 -08:00
2014-01-06 23:23:57 -08:00
2014-01-06 23:23:57 -08:00
2014-01-06 23:23:57 -08:00
2015-10-02 11:44:18 -07:00
2014-01-06 23:23:57 -08:00
2015-07-27 22:28:19 -07:00
2015-07-17 16:57:00 -07:00
2014-12-17 10:06:02 -08:00
2015-07-23 14:43:17 -07:00
2014-10-20 16:20:41 +02:00
2015-07-17 16:57:00 -07:00
2014-01-06 23:23:57 -08:00
2015-07-11 23:26:33 -07:00
2015-08-21 19:27:23 +02:00
2014-10-20 16:20:41 +02:00
2014-09-09 16:52:09 -07:00
2014-09-09 16:52:09 -07:00
2015-10-02 11:44:17 -07:00
2014-01-06 23:23:57 -08:00