diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-01-30 23:31:03 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-02-22 09:41:11 +0100 |
commit | 3a7c5c2143a5111fdac929a12dd0a0e0e1587b43 (patch) | |
tree | 520a6983bb52bb3734873b83150f8015a82bf67a /drivers/media/usb | |
parent | media: uapi: Init VP9 stateless decode params (diff) | |
download | linux-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.c | 1 |
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); } |