diff options
| author | Colin Ian King <colin.king@canonical.com> | 2020-04-24 14:04:19 +0100 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-05-03 09:47:21 +0100 |
| commit | a66904b209b6d828f9ad4486f30e24fb3463c71c (patch) | |
| tree | 313ce10e0bcdd4024681aae7f9265f6afb417eea /tools/perf/scripts/python/stackcollapse.py | |
| parent | iio: buffer: extend short-hand use for 'indio_dev->buffer' (diff) | |
| download | linux-a66904b209b6d828f9ad4486f30e24fb3463c71c.tar.gz linux-a66904b209b6d828f9ad4486f30e24fb3463c71c.zip | |
iio: adc: ad7476: remove redundant null check on an array
The null check on st->chip_info->convst_channel is redundant because
convst_channel is a 2 element array of struct iio_chan_spec objects
and this can never be null. Fix this by removing the null check.
Addresses-Coverity: ("Array compared against 0")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
