[ISDN]: Get rid of some pointless allocation casts in common and bsd comp.
vmalloc() returns a void pointer - no need to cast the return value. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c573f73ce9
commit
7c8347a91d
@@ -2291,7 +2291,7 @@ static int __init isdn_init(void)
|
||||
int i;
|
||||
char tmprev[50];
|
||||
|
||||
if (!(dev = (isdn_dev *) vmalloc(sizeof(isdn_dev)))) {
|
||||
if (!(dev = vmalloc(sizeof(isdn_dev)))) {
|
||||
printk(KERN_WARNING "isdn: Could not allocate device-struct.\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
Reference in New Issue
Block a user