Author: jakllsch Date: Tue Oct 19 15:49:11 2010 New Revision: 5972 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5972
Log: Remove unused variables from 6300ESB smbus_write_block().
#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
Modified: trunk/src/southbridge/intel/esb6300/esb6300_early_smbus.c
Modified: trunk/src/southbridge/intel/esb6300/esb6300_early_smbus.c ============================================================================== --- trunk/src/southbridge/intel/esb6300/esb6300_early_smbus.c Tue Oct 19 15:39:38 2010 (r5971) +++ trunk/src/southbridge/intel/esb6300/esb6300_early_smbus.c Tue Oct 19 15:49:11 2010 (r5972) @@ -22,6 +22,7 @@ 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 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 @@ print_debug("SMBUS Block complete\n"); return 0; } +#endif