bsps/powerpc: Fix compiler warnings

This commit is contained in:
Sebastian Huber
2013-01-09 12:50:55 +01:00
parent bfde536ec4
commit 339646e887

View File

@@ -493,7 +493,6 @@ static rtems_status_code mpc83xx_i2c_send_addr
\*=========================================================================*/ \*=========================================================================*/
{ {
mpc83xx_i2c_softc_t *softc_ptr = &(((mpc83xx_i2c_desc_t *)(bh))->softc); mpc83xx_i2c_softc_t *softc_ptr = &(((mpc83xx_i2c_desc_t *)(bh))->softc);
bool long_addr = false;
uint8_t addr_byte; uint8_t addr_byte;
rtems_status_code rc; rtems_status_code rc;
@@ -505,7 +504,6 @@ static rtems_status_code mpc83xx_i2c_send_addr
* determine, whether short or long address is needed, determine rd/wr * determine, whether short or long address is needed, determine rd/wr
*/ */
if (addr > 0x7f) { if (addr > 0x7f) {
long_addr = true;
addr_byte = (0xf0 addr_byte = (0xf0
| ((addr >> 7) & 0x06) | ((addr >> 7) & 0x06)
| ((rw) ? 1 : 0)); | ((rw) ? 1 : 0));
@@ -565,7 +563,6 @@ static int mpc83xx_i2c_read_bytes
mpc83xx_i2c_softc_t *softc_ptr = &(((mpc83xx_i2c_desc_t *)(bh))->softc); mpc83xx_i2c_softc_t *softc_ptr = &(((mpc83xx_i2c_desc_t *)(bh))->softc);
rtems_status_code rc; rtems_status_code rc;
unsigned char *p = buf; unsigned char *p = buf;
unsigned char dummy;
#if defined(DEBUG) #if defined(DEBUG)
printk("mpc83xx_i2c_read_bytes called... "); printk("mpc83xx_i2c_read_bytes called... ");
@@ -579,7 +576,7 @@ static int mpc83xx_i2c_read_bytes
/* /*
* we need a dummy transfer here to start the first read * we need a dummy transfer here to start the first read
*/ */
dummy = softc_ptr->reg_ptr->i2cdr; softc_ptr->reg_ptr->i2cdr;
while (len-- > 0) { while (len-- > 0) {
if (len == 0) { if (len == 0) {