Changeset 5816

Show
Ignore:
Timestamp:
01/17/10 12:32:11 (3 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
Location:
lm-sensors/branches/lm-sensors-2.10
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-2.10/CHANGES

    r5802 r5816  
    55  File lm_sensors.lsm: Delete, don't advertise a legacy branch 
    66  File doc/developers/release_checklist: Skip mail to lsm 
     7  Module i2c-ali1563: Remove sparse warnings (2.6 backport) 
    78  Module i2c-amd8111: Fix timeout handling (2.6 backport) 
    89  Module i2c-piix4: ATI SB800 is not actually supported 
  • 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, "