Remove unused variables from 6300ESB smbus_write_block().
authorJonathan Kollasch <jakllsch@kollasch.net>
Tue, 19 Oct 2010 13:49:11 +0000 (13:49 +0000)
committerJonathan A. Kollasch <jakllsch@kollasch.net>
Tue, 19 Oct 2010 13:49:11 +0000 (13:49 +0000)
#ifdef DEADCODE out smbus_write_byte() and smbus_write_block() as
they are static and nothing uses them or are incompletely implemented.

Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5972 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/southbridge/intel/esb6300/esb6300_early_smbus.c

index d804fde038d19d72a1323d6ccbb48e30f24baa4b..f8587856e859c8430977311331bba9c4d80f5710 100644 (file)
@@ -22,6 +22,7 @@ static int smbus_read_byte(unsigned device, unsigned address)
        return do_smbus_read_byte(SMBUS_IO_BASE, device, address);
 }
 
+#ifdef DEADCODE
 static void smbus_write_byte(unsigned device, unsigned address, unsigned char val)
 {
        if (smbus_wait_until_ready(SMBUS_IO_BASE) < 0) {
@@ -33,8 +34,6 @@ static void smbus_write_byte(unsigned device, unsigned address, unsigned char va
 static int smbus_write_block(unsigned device, unsigned length, unsigned cmd,
                 unsigned data1, unsigned data2)
 {
-       unsigned char global_control_register;
-       unsigned char global_status_register;
        unsigned char byte;
        unsigned char stat;
        int i;
@@ -95,4 +94,5 @@ static int smbus_write_block(unsigned device, unsigned length, unsigned cmd,
        print_debug("SMBUS Block complete\n");
        return 0;
 }
+#endif