summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorIoana Ciornei <ciorneiioana@gmail.com>2015-10-14 22:34:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 22:46:48 -0700
commit4a737ec350caf0d04e3706f86887ac716abf584e (patch)
treec8e464899e522665afe55da07ea88893494bd162 /tools/perf/scripts/python/event_analyzing_sample.py
parentbd60ac14db902ed8e5c7a769c85fc9005fd69c26 (diff)
downloadlinux-4a737ec350caf0d04e3706f86887ac716abf584e.tar.gz
linux-4a737ec350caf0d04e3706f86887ac716abf584e.zip
staging: iio: cdc: simplify return flow
Simplify return flow ad7150_write_event_params in order to reduce code length. Since i2c_smbus_write_word_data only returns a negative value or 0 the change is safe. This patch fixes the following coccicheck warning: drivers/staging/iio/cdc/ad7150.c:182:2-5: WARNING: end returns can be simpified if negative or 0 value Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions