From: Colin Ian King Date: Sun, 30 Jan 2022 22:31:03 +0000 (+0000) Subject: media: gspca: remove redundant assignment of variable n X-Git-Tag: v6.1-rc5~1763^2~86^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a7c5c2143a5111fdac929a12dd0a0e0e1587b43;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/usb/gspca/pac7302.c b/drivers/media/usb/gspca/pac7302.c index 2e8c3ef..608be0d 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); }