[NET]: Avoid pointless allocation casts in BSD compression module

The general kernel memory allocation functions return void pointers
and there is no need to cast their return values.

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 c573f73c 901ded25

+2 -4
+2 -4
drivers/net/bsd_comp.c
··· 406 406 * Allocate space for the dictionary. This may be more than one page in 407 407 * length. 408 408 */ 409 - db->dict = (struct bsd_dict *) vmalloc (hsize * 410 - sizeof (struct bsd_dict)); 409 + db->dict = vmalloc(hsize * sizeof(struct bsd_dict)); 411 410 if (!db->dict) 412 411 { 413 412 bsd_free (db); ··· 425 426 */ 426 427 else 427 428 { 428 - db->lens = (unsigned short *) vmalloc ((maxmaxcode + 1) * 429 - sizeof (db->lens[0])); 429 + db->lens = vmalloc((maxmaxcode + 1) * sizeof(db->lens[0])); 430 430 if (!db->lens) 431 431 { 432 432 bsd_free (db);