diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-10-19 22:52:12 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-10-24 19:03:54 +0200 |
commit | fdc67bd4f888c409f4fae28a3cd6b144f729c34f (patch) | |
tree | 7040146c4ad942482a7b864c1b9fc81d2b8ac351 /drivers/media/test-drivers/vivid/vivid-vbi-gen.c | |
parent | fec94f8c9954c31364e96af783c497d782730334 (diff) | |
download | linux-stable-fdc67bd4f888c409f4fae28a3cd6b144f729c34f.tar.gz linux-stable-fdc67bd4f888c409f4fae28a3cd6b144f729c34f.tar.bz2 linux-stable-fdc67bd4f888c409f4fae28a3cd6b144f729c34f.zip |
media: vivid: remove redundant assignment to variable checksum
Variable checksum is assigned a value that is never read, it is assigned
a new value in a following for-loop. The assignment is redundant and can
be removed.
Cleans up clang scan build warning:
drivers/media/test-drivers/vivid/vivid-vbi-gen.c:197:2: warning: Value
stored to 'checksum' is never read [deadcode.DeadStores]
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/test-drivers/vivid/vivid-vbi-gen.c')
-rw-r--r-- | drivers/media/test-drivers/vivid/vivid-vbi-gen.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/test-drivers/vivid/vivid-vbi-gen.c b/drivers/media/test-drivers/vivid/vivid-vbi-gen.c index a141369a7a63..70a4024d461e 100644 --- a/drivers/media/test-drivers/vivid/vivid-vbi-gen.c +++ b/drivers/media/test-drivers/vivid/vivid-vbi-gen.c @@ -194,7 +194,6 @@ static void vivid_vbi_gen_set_time_of_day(u8 *packet) for (checksum = i = 0; i <= 8; i++) checksum += packet[i] & 0x7f; packet[9] = calc_parity(0x100 - checksum); - checksum = 0; packet[10] = calc_parity(0x07); packet[11] = calc_parity(0x04); if (sys_tz.tz_minuteswest >= 0) |