aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2021-11-10 10:54:41 +0000
committerMauro Carvalho Chehab <[email protected]>2021-11-15 08:11:57 +0000
commitd9916e7c87c97781579c3d3d47e52c564e321c21 (patch)
treed150b4cc444c207800f7912145b75c9117503ef3 /tools/perf/scripts/python/net_dropmonitor.py
parent29400b5063db69fbed9ff483a44d635b15d847cc (diff)
media: atomisp-ov2680: initialize return var
As the settings are only applied when the device is powered on, it should return 0 when the device is not powered. Not doing that causes a warning: drivers/staging/media/atomisp/i2c/atomisp-ov2680.c: In function 'ov2680_ioctl': drivers/staging/media/atomisp/i2c/atomisp-ov2680.c:390:16: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] 390 | return ov2680_set_exposure(sd, coarse_itg, analog_gain, digital_gain); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/staging/media/atomisp/i2c/atomisp-ov2680.c:359:13: note: 'ret' was declared here 359 | int ret; | ^~~ Reported-by: Hans Verkuil <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Fixes: 6b5b60687ada ("media: atomisp-ov2680: Save/restore exposure and gain over sensor power-down") Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions