From: Stefan Weil Date: Sat, 25 Feb 2012 13:50:25 +0000 (+0100) Subject: ds1338: Add missing break statement X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~719^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbac6a7d35d119a52606c175aface9bcec805f09;p=sdk%2Femulator%2Fqemu.git ds1338: Add missing break statement Without the break statement, case 5 sets month and year from the same data. This does not look correct. The missing break was reported by splint. Signed-off-by: Stefan Weil Reviewed-by: Peter Maydell Reviewed-by: Andreas Färber Signed-off-by: Stefan Hajnoczi --- diff --git a/hw/ds1338.c b/hw/ds1338.c index 6397f0aa6f..d590d9c007 100644 --- a/hw/ds1338.c +++ b/hw/ds1338.c @@ -100,6 +100,7 @@ static int ds1338_send(I2CSlave *i2c, uint8_t data) break; case 5: s->now.tm_mon = from_bcd(data & 0x1f) - 1; + break; case 6: s->now.tm_year = from_bcd(data) + 100; break;