diff options
author | 2015-10-02 11:20:40 -0700 | |
---|---|---|
committer | 2015-10-02 11:44:19 -0700 | |
commit | c4517f82d23eb72bf0768257bccc5f326c9ceada (patch) | |
tree | 71ff8ccfc6c7041aa07a8fc25a94b7a139f725d5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Input: tps6507x-ts - simplify function return logic (diff) | |
download | linux-dev-c4517f82d23eb72bf0768257bccc5f326c9ceada.tar.xz linux-dev-c4517f82d23eb72bf0768257bccc5f326c9ceada.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions