]> asedeno.scripts.mit.edu Git - linux.git/commit
misc: genwqe: remove several redundant variables
authorColin Ian King <colin.king@canonical.com>
Tue, 3 Jul 2018 07:14:43 +0000 (08:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 11:01:47 +0000 (13:01 +0200)
commitccbaef5d0ba8b0015ac94d8e65957bc1f5864513
tree1b4ea1de8f540a9bc17df8f3ea45f4cb47ebf634
parent9cf04a29ff701d259fdcaf45baf92087898c6f61
misc: genwqe: remove several redundant variables

The variables val16, type, pci_dev and type are set but are never used
hence they are redundant and can be removed.

Cleans up clang warnings:
warning: variable 'type' set but not used [-Wunused-but-set-variable]
warning: variable 'val16' set but not used [-Wunused-but-set-variable]
warning: variable 'pci_dev' set but not used [-Wunused-but-set-variable]
warning: variable 'type' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/genwqe/card_debugfs.c
drivers/misc/genwqe/card_dev.c