summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cobalt/cobalt-flash.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-03 04:00:35 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-07-23 08:52:13 -0400
commited2cea4f95bf2d091061e2b89b22912fff575a14 (patch)
tree655fa49aace7da11abc6132e0d5ed20e76383cd7 /drivers/media/pci/cobalt/cobalt-flash.c
parentaef5f47c9907ed6bfe9245124279b9c049077fd7 (diff)
downloadblackbird-op-linux-ed2cea4f95bf2d091061e2b89b22912fff575a14.tar.gz
blackbird-op-linux-ed2cea4f95bf2d091061e2b89b22912fff575a14.zip
media: cobalt: remove redundant assignment to variable data
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>
Diffstat (limited to 'drivers/media/pci/cobalt/cobalt-flash.c')
-rw-r--r--drivers/media/pci/cobalt/cobalt-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cobalt/cobalt-flash.c b/drivers/media/pci/cobalt/cobalt-flash.c
index ef96e0f956d2..1d3c64b4cf6d 100644
--- a/drivers/media/pci/cobalt/cobalt-flash.c
+++ b/drivers/media/pci/cobalt/cobalt-flash.c
@@ -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));
OpenPOWER on IntegriCloud