media: cobalt: remove redundant assignment to variable data
authorColin Ian King <colin.king@canonical.com>
Wed, 3 Jul 2019 08:00:35 +0000 (04:00 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 23 Jul 2019 12:52:13 +0000 (08:52 -0400)
The variable data is being initialized with a value that is never
read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/cobalt/cobalt-flash.c

index ef96e0f..1d3c64b 100644 (file)
@@ -69,7 +69,7 @@ static void flash_copy_to(struct map_info *map, unsigned long to,
 
        pr_info("%s: offset 0x%x: length %zu\n", __func__, dest, len);
        while (len) {
-               u16 data = 0xffff;
+               u16 data;
 
                do {
                        data = *src << (8 * (dest & 1));