Skip to content

Commit

Permalink
media: cx231xx: remove redundant assignment to variable err
Browse files Browse the repository at this point in the history
The variable err is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
Colin Ian King authored and mchehab committed Jul 4, 2020
1 parent 37e278c commit 414953b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/usb/cx231xx/cx231xx-417.c
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,7 @@ static void cx231xx_video_dev_init(
int cx231xx_417_register(struct cx231xx *dev)
{
/* FIXME: Port1 hardcoded here */
int err = -ENODEV;
int err;
struct cx231xx_tsport *tsport = &dev->ts1;
struct vb2_queue *q;

Expand Down

0 comments on commit 414953b

Please sign in to comment.