[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>

authored by Jesper Juhl and committed by David S. Miller 7c8347a9 c573f73c

+3 -4
+2 -3
drivers/isdn/i4l/isdn_bsdcomp.c
··· 341 341 * Allocate space for the dictionary. This may be more than one page in 342 342 * length. 343 343 */ 344 - db->dict = (struct bsd_dict *) vmalloc (hsize * sizeof (struct bsd_dict)); 344 + db->dict = vmalloc(hsize * sizeof(struct bsd_dict)); 345 345 if (!db->dict) { 346 346 bsd_free (db); 347 347 return NULL; ··· 354 354 if (!decomp) 355 355 db->lens = NULL; 356 356 else { 357 - db->lens = (unsigned short *) vmalloc ((maxmaxcode + 1) * 358 - sizeof (db->lens[0])); 357 + db->lens = vmalloc((maxmaxcode + 1) * sizeof(db->lens[0])); 359 358 if (!db->lens) { 360 359 bsd_free (db); 361 360 return (NULL);
+1 -1
drivers/isdn/i4l/isdn_common.c
··· 2291 2291 int i; 2292 2292 char tmprev[50]; 2293 2293 2294 - if (!(dev = (isdn_dev *) vmalloc(sizeof(isdn_dev)))) { 2294 + if (!(dev = vmalloc(sizeof(isdn_dev)))) { 2295 2295 printk(KERN_WARNING "isdn: Could not allocate device-struct.\n"); 2296 2296 return -EIO; 2297 2297 }