summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-01-30 23:31:03 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-02-22 09:41:11 +0100
commit3a7c5c2143a5111fdac929a12dd0a0e0e1587b43 (patch)
tree520a6983bb52bb3734873b83150f8015a82bf67a /drivers/media/usb
parentmedia: uapi: Init VP9 stateless decode params (diff)
downloadlinux-3a7c5c2143a5111fdac929a12dd0a0e0e1587b43.tar.xz
linux-3a7c5c2143a5111fdac929a12dd0a0e0e1587b43.zip
media: gspca: remove redundant assignment of variable n
The variable n is being assigned a value that is never read, it is being reassigned a different value a few statements later. 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>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/gspca/pac7302.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/pac7302.c b/drivers/media/usb/gspca/pac7302.c
index 2e8c3ef51ca3..608be0d64f94 100644
--- a/drivers/media/usb/gspca/pac7302.c
+++ b/drivers/media/usb/gspca/pac7302.c
@@ -794,7 +794,6 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
n = (sof - data) - (footer_length + sizeof pac_sof_marker);
if (n < 0) {
gspca_dev->image_len += n;
- n = 0;
} else {
gspca_frame_add(gspca_dev, INTER_PACKET, data, n);
}