summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/ov9640.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-12-04 01:28:16 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-07 15:55:40 +0300
commit747d2305029ab9a47eb01beb9d537b69f5a51a94 (patch)
tree0ee0725a169de0dc85dae482bae0db4bb5274b82 /drivers/media/i2c/ov9640.c
parentcc17afa2e84f5017bae646a7240b6a43e847a2d7 (diff)
downloadlinux-747d2305029ab9a47eb01beb9d537b69f5a51a94.tar.xz
media: ccs: avoid printing an uninitialized variable
There is no intialization for the 'reg' variable, so printing it produces undefined behavior as well as a compile-time warning: drivers/media/i2c/ccs/ccs-core.c:314:49: error: variable 'reg' is uninitialized when used here [-Werror,-Wuninitialized] "0x%8.8x %s pixels: %d %s (pixelcode %u)\n", reg, Remove the variable and stop printing it. Fixes: fd9065812c7b ("media: smiapp: Obtain frame descriptor from CCS limits") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ov9640.c')
0 files changed, 0 insertions, 0 deletions