Changeset 3126

Show
Ignore:
Timestamp:
10/18/05 08:07:39 (8 years ago)
Author:
khali
Message:

Drop useless cast on kmalloc return (backport from Linux 2.6).

Location:
lm-sensors/trunk/kernel/busses
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-amd8111.c

    r3125 r3126  
    363363                return -1; 
    364364 
    365         if (!(smbus = (void*)kmalloc(sizeof(struct amd_smbus), GFP_KERNEL))) 
     365        if (!(smbus = kmalloc(sizeof(struct amd_smbus), GFP_KERNEL))) 
    366366                return -1; 
    367367        memset(smbus, 0, sizeof(struct amd_smbus)); 
  • lm-sensors/trunk/kernel/busses/i2c-keywest.c

    r3085 r3126  
    463463        tsize = sizeof(struct keywest_iface) + 
    464464                (sizeof(struct keywest_chan) + 4) * nchan; 
    465         iface = (struct keywest_iface *) kmalloc(tsize, GFP_KERNEL); 
     465        iface = kmalloc(tsize, GFP_KERNEL); 
    466466        if (iface == NULL) { 
    467467                printk(KERN_ERR "i2c-keywest: can't allocate inteface !\n"); 
  • lm-sensors/trunk/kernel/busses/i2c-nforce2.c

    r3072 r3126  
    349349 
    350350        /* we support 2 SMBus adapters */ 
    351         if (!(smbuses = (void *)kmalloc(2*sizeof(struct nforce2_smbus), 
    352                                         GFP_KERNEL))) 
     351        if (!(smbuses = kmalloc(2*sizeof(struct nforce2_smbus), GFP_KERNEL))) 
    353352                return -ENOMEM; 
    354353        memset (smbuses, 0, 2*sizeof(struct nforce2_smbus));