media: saa7134: remove redundant assignment to variable id
authorColin Ian King <colin.i.king@gmail.com>
Sun, 30 Jan 2022 23:15:20 +0000 (23:15 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 22 Feb 2022 08:41:11 +0000 (09:41 +0100)
Variable id is being assigned a value that is never read. The
assignment is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/saa7134/saa7134-video.c

index 7bc4c77..48543ad 100644 (file)
@@ -1535,8 +1535,6 @@ int saa7134_s_std(struct file *file, void *priv, v4l2_std_id id)
                        return -EINVAL;
        }
 
-       id = tvnorms[i].id;
-
        if (!is_empress(file) && fh == dev->overlay_owner) {
                spin_lock_irqsave(&dev->slock, flags);
                stop_preview(dev);