提交 795a8075 编写于 作者: C Colin Ian King 提交者: Greg Kroah-Hartman

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c588f1a4
...@@ -1750,7 +1750,7 @@ static int sisusb_setup_screen(struct sisusb_usb_data *sisusb, ...@@ -1750,7 +1750,7 @@ static int sisusb_setup_screen(struct sisusb_usb_data *sisusb,
static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb, static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb,
int touchengines) int touchengines)
{ {
int ret = 0, i, j, modex, modey, bpp, du; int ret = 0, i, j, modex, bpp, du;
u8 sr31, cr63, tmp8; u8 sr31, cr63, tmp8;
static const char attrdata[] = { static const char attrdata[] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
...@@ -1773,7 +1773,7 @@ static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb, ...@@ -1773,7 +1773,7 @@ static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb,
0x00 0x00
}; };
modex = 640; modey = 480; bpp = 2; modex = 640; bpp = 2;
GETIREG(SISSR, 0x31, &sr31); GETIREG(SISSR, 0x31, &sr31);
GETIREG(SISCR, 0x63, &cr63); GETIREG(SISCR, 0x63, &cr63);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册