diff options
Diffstat (limited to 'src/mainboard/via')
-rw-r--r-- | src/mainboard/via/epia-m/auto.c | 4 | ||||
-rw-r--r-- | src/mainboard/via/epia/auto.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/mainboard/via/epia-m/auto.c b/src/mainboard/via/epia-m/auto.c index e7b310ffcb..c82be2e111 100644 --- a/src/mainboard/via/epia-m/auto.c +++ b/src/mainboard/via/epia-m/auto.c @@ -39,9 +39,7 @@ static void memreset_setup(void) static inline int spd_read_byte(unsigned device, unsigned address) { - unsigned char c; - c = smbus_read_byte(device, address); - return c; + return smbus_read_byte(device, address); } #include "northbridge/via/vt8623/raminit.c" diff --git a/src/mainboard/via/epia/auto.c b/src/mainboard/via/epia/auto.c index dcaa6aace9..aec0dbff14 100644 --- a/src/mainboard/via/epia/auto.c +++ b/src/mainboard/via/epia/auto.c @@ -31,9 +31,7 @@ void udelay(int usecs) static inline int spd_read_byte(unsigned device, unsigned address) { - unsigned char c; - c = smbus_read_byte(device, address); - return c; + return smbus_read_byte(device, address); } #include "northbridge/via/vt8601/raminit.c" |