mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
i2c-ali1563: Remove sparse warnings.
Backported from Linux 2.6, original patch from Marton Nemeth: Remove the following sparse warnings (see "make C=1"): * drivers/i2c/busses/i2c-ali1563.c:91:3: warning: do-while statement is not a compound statement * drivers/i2c/busses/i2c-ali1563.c:161:3: warning: do-while statement is not a compound statement git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-2.10@5816 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5caa214052
commit
8bfcf88477
2 files changed
+5
-4
No files matched your search
@@ -92,9 +92,9 @@ static int ali1563_transaction(struct i2c_adapter * a)
|
||||
outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2);
|
||||
|
||||
timeout = ALI1563_MAX_TIMEOUT;
|
||||
do
|
||||
do {
|
||||
i2c_delay(1);
|
||||
while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout);
|
||||
} while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout);
|
||||
|
||||
printk(KERN_DEBUG "ali1563: Transaction (post): STS=%02x, CNTL1=%02x, "
|
||||
"CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n",
|
||||
@@ -162,9 +162,9 @@ static int ali1563_block_start(struct i2c_adapter * a)
|
||||
outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2);
|
||||
|
||||
timeout = ALI1563_MAX_TIMEOUT;
|
||||
do
|
||||
do {
|
||||
i2c_delay(1);
|
||||
while (!((data = inb_p(SMB_HST_STS)) & HST_STS_DONE) && --timeout);
|
||||
} while (!((data = inb_p(SMB_HST_STS)) & HST_STS_DONE) && --timeout);
|
||||
|
||||
printk(KERN_DEBUG "ali1563: Block (post): STS=%02x, CNTL1=%02x, "
|
||||
"CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n",
|
||||
|
||||
Reference in new issue
Block a user