[rtems commit] bsps/powerpc: Fix compiler warnings
Sebastian Huber
sebh at rtems.org
Wed Jan 9 15:41:06 UTC 2013
Module: rtems
Branch: master
Commit: 339646e88712f1d52f2f2b9a861a9b185179213e
Changeset: http://git.rtems.org/rtems/commit/?id=339646e88712f1d52f2f2b9a861a9b185179213e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jan 9 12:50:55 2013 +0100
bsps/powerpc: Fix compiler warnings
---
.../libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.c b/c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.c
index 9739643..ce41823 100644
--- a/c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.c
+++ b/c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.c
@@ -493,7 +493,6 @@ static rtems_status_code mpc83xx_i2c_send_addr
\*=========================================================================*/
{
mpc83xx_i2c_softc_t *softc_ptr = &(((mpc83xx_i2c_desc_t *)(bh))->softc);
- bool long_addr = false;
uint8_t addr_byte;
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
*/
if (addr > 0x7f) {
- long_addr = true;
addr_byte = (0xf0
| ((addr >> 7) & 0x06)
| ((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);
rtems_status_code rc;
unsigned char *p = buf;
- unsigned char dummy;
#if defined(DEBUG)
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
*/
- dummy = softc_ptr->reg_ptr->i2cdr;
+ softc_ptr->reg_ptr->i2cdr;
while (len-- > 0) {
if (len == 0) {
More information about the vc
mailing list