Show
Ignore:
Timestamp:
01/17/10 12:32:11 (2 years ago)
Author:
khali
Message:

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
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-2.10/kernel/busses/i2c-ali1563.c

    r4324 r5816  
    9393 
    9494        timeout = ALI1563_MAX_TIMEOUT; 
    95         do 
     95        do { 
    9696                i2c_delay(1); 
    97         while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout); 
     97        } while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout); 
    9898 
    9999        printk(KERN_DEBUG "ali1563: Transaction (post): STS=%02x, CNTL1=%02x, " 
     
    163163 
    164164        timeout = ALI1563_MAX_TIMEOUT; 
    165         do 
     165        do { 
    166166                i2c_delay(1); 
    167         while (!((data = inb_p(SMB_HST_STS)) & HST_STS_DONE) && --timeout); 
     167        } while (!((data = inb_p(SMB_HST_STS)) & HST_STS_DONE) && --timeout); 
    168168 
    169169        printk(KERN_DEBUG "ali1563: Block (post): STS=%02x, CNTL1=%02x, "