diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2018-09-14 11:56:28 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-24 15:51:00 +0200 |
commit | 7390ba4397c1ed069de3b7f88c3f3821d648a582 (patch) | |
tree | 3361cb593888acaf3647b6ec2574fd9007932cc4 /drivers/media | |
parent | media: v4l2-compat-ioctl32.c: add missing documentation for a field (diff) | |
download | linux-7390ba4397c1ed069de3b7f88c3f3821d648a582.tar.xz linux-7390ba4397c1ed069de3b7f88c3f3821d648a582.zip |
media: v4l2-ctrls.c: initialize an error return code with zero
Fix this smatch error:
drivers/media/v4l2-core/v4l2-ctrls.c:2971 v4l2_ctrl_request_clone() error: uninitialized symbol 'err'.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/v4l2-core/v4l2-ctrls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 95d065d54308..5310ac857e83 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -2879,7 +2879,7 @@ static int v4l2_ctrl_request_clone(struct v4l2_ctrl_handler *hdl, const struct v4l2_ctrl_handler *from) { struct v4l2_ctrl_ref *ref; - int err; + int err = 0; if (WARN_ON(!hdl || hdl == from)) return -EINVAL; |