aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2020-11-27 11:40:38 +0200
committerJonathan Cameron <[email protected]>2020-12-03 19:32:19 +0000
commit53c6b0d5d27114a738ac0b312f292aec7f64e9d4 (patch)
tree1984429abc5060f542a3fdcd92113f3351754df3 /scripts/gdb/linux/modules.py
parentb6a3f8326cfddad455d832d4ff9392286280a31c (diff)
iio: adc: ad7298: check regulator for null in ad7298_get_ref_voltage()
'st->ext_ref' & 'st->reg' are both non-zero/non-null at the same time, so logically the code isn't broken. But it is more correct to check that 'st->reg' is non-null, since we make sure that the regulator is NULL (in probe) in case one isn't defined. Signed-off-by: Alexandru Ardelean <[email protected]> Cc: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions