Paolo Bonzini 5229f45bd9 aux: fix break that wanted to break two levels out
The last "ret = AUX_I2C_NACK;" is dead, because it is always overridden
by AUX_I2C_ACK.  What really the code wants is to jump out of the switch
statement, and a "return" will not cut it because it would omit a debug
printf.

Change the logic so that we can break out of the while loop.  For clarity,
hoist the bus->last_* assignments up, right after i2c_start_transfer.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2016-07-07 13:47:00 +01:00
..
2016-07-01 14:38:54 +02:00
2016-07-04 13:15:22 +01:00
2016-06-29 19:14:48 +01:00
2016-07-05 17:53:02 +01:00
2016-06-29 14:03:48 +02:00
2016-07-07 14:29:04 +08:00
2016-07-06 10:52:03 +02:00
2016-07-06 10:52:04 +02:00
2016-07-07 14:29:04 +08:00
2016-07-04 13:15:22 +01:00
2016-07-07 14:29:04 +08:00