]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Drop unused vars from int10.c code
authorCyrill Gorcunov <gorcunov@gmail.com>
Mon, 23 May 2011 14:39:17 +0000 (18:39 +0400)
committerPekka Enberg <penberg@kernel.org>
Mon, 23 May 2011 14:40:38 +0000 (17:40 +0300)
There is a couple of functions which defines 'ah' variable but
never use it in real so that gcc 4.6.x series does complain on
me as

  CC       bios/bios-rom.bin
  bios/int10.c: In function ‘int10_putchar’:
  bios/int10.c:86:9: error: variable ‘ah’ set but not used [-Werror=unused-but-set-variable]
  bios/int10.c: In function ‘int10_vesa’:
  bios/int10.c:96:9: error: variable ‘ah’ set but not used [-Werror=unused-but-set-variable]
  cc1: all warnings being treated as errors

so get rid of them.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
CC: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/bios/int10.c

index 02c1e03518bfe9b44a7d03205842e9db61940331..48abe10e103661d6703323ea91fbfd7406389f4d 100644 (file)
@@ -83,22 +83,18 @@ static inline void outb(unsigned short port, unsigned char val)
  */
 static inline void int10_putchar(struct int10_args *args)
 {
-       u8 al, ah;
-
-       al = args->eax & 0xFF;
-       ah = (args->eax & 0xFF00) >> 8;
+       u8 al = args->eax & 0xFF;
 
        outb(0x3f8, al);
 }
 
 static void int10_vesa(struct int10_args *args)
 {
-       u8 al, ah;
+       u8 al;
        struct vesa_general_info *destination;
        struct vminfo *vi;
 
        al = args->eax;
-       ah = args->eax >> 8;
 
        switch (al) {
        case 0: