]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: imx334: 'ret' is uninitialized, should have been PTR_ERR()
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 8 Feb 2021 11:32:29 +0000 (12:32 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 9 Feb 2021 14:14:02 +0000 (15:14 +0100)
commitc702e2f70275dbc5373aef50c450cf9c5730636c
tree6c40e111ef90fa2c4143d512a12dc72caa054550
parent9746b11715c3949241e2d88cb9057da4adab7e02
media: imx334: 'ret' is uninitialized, should have been PTR_ERR()

Fix this compiler warning:

drivers/media/i2c/imx334.c: In function 'imx334_parse_hw_config':
include/linux/dev_printk.h:112:2: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
  112 |  _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
      |  ^~~~~~~~
drivers/media/i2c/imx334.c:783:6: note: 'ret' was declared here
  783 |  int ret;
      |      ^~~

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/imx334.c