diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-13 05:55:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-13 09:41:56 -0400 |
commit | 795a8075e9a53f441229c3890f702bf96508406b (patch) | |
tree | 7af21ca05b2d38d9a16677f7de24d57fa5dfc868 | |
parent | c588f1a46aa57f58148239d74bb6aec898e214c9 (diff) |
usb-misc: sisusbvga: remove redundant variable modey
Variable modey is being assigned but is never used hence it is
redundant and can be removed.
Cleans up clang warning:
warning: variable 'modey' 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>
-rw-r--r-- | drivers/usb/misc/sisusbvga/sisusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c index f92c5df26320..3198d0477cf8 100644 --- a/drivers/usb/misc/sisusbvga/sisusb.c +++ b/drivers/usb/misc/sisusbvga/sisusb.c | |||
@@ -1750,7 +1750,7 @@ static int sisusb_setup_screen(struct sisusb_usb_data *sisusb, | |||
1750 | static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb, | 1750 | static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb, |
1751 | int touchengines) | 1751 | int touchengines) |
1752 | { | 1752 | { |
1753 | int ret = 0, i, j, modex, modey, bpp, du; | 1753 | int ret = 0, i, j, modex, bpp, du; |
1754 | u8 sr31, cr63, tmp8; | 1754 | u8 sr31, cr63, tmp8; |
1755 | static const char attrdata[] = { | 1755 | static const char attrdata[] = { |
1756 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, | 1756 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, |
@@ -1773,7 +1773,7 @@ static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb, | |||
1773 | 0x00 | 1773 | 0x00 |
1774 | }; | 1774 | }; |
1775 | 1775 | ||
1776 | modex = 640; modey = 480; bpp = 2; | 1776 | modex = 640; bpp = 2; |
1777 | 1777 | ||
1778 | GETIREG(SISSR, 0x31, &sr31); | 1778 | GETIREG(SISSR, 0x31, &sr31); |
1779 | GETIREG(SISCR, 0x63, &cr63); | 1779 | GETIREG(SISCR, 0x63, &cr63); |