summaryrefslogtreecommitdiff
path: root/drivers/isdn/i4l/isdn_bsdcomp.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-08-25 10:25:33 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-08-27 05:35:46 +0400
commit7c8347a91dbbb723d8ed106ec817dabac97f2bbc (patch)
tree167d78f55ea340d4df5e97805fbd5e3d5751bc98 /drivers/isdn/i4l/isdn_bsdcomp.c
parentc573f73ce95d7e421cb4b9928dd41ac9518fcccf (diff)
downloadlinux-7c8347a91dbbb723d8ed106ec817dabac97f2bbc.tar.xz
[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>
Diffstat (limited to 'drivers/isdn/i4l/isdn_bsdcomp.c')
-rw-r--r--drivers/isdn/i4l/isdn_bsdcomp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/isdn/i4l/isdn_bsdcomp.c b/drivers/isdn/i4l/isdn_bsdcomp.c
index 90a23795db7e..02d9918705dd 100644
--- a/drivers/isdn/i4l/isdn_bsdcomp.c
+++ b/drivers/isdn/i4l/isdn_bsdcomp.c
@@ -341,7 +341,7 @@ static void *bsd_alloc (struct isdn_ppp_comp_data *data)
* Allocate space for the dictionary. This may be more than one page in
* length.
*/
- db->dict = (struct bsd_dict *) vmalloc (hsize * sizeof (struct bsd_dict));
+ db->dict = vmalloc(hsize * sizeof(struct bsd_dict));
if (!db->dict) {
bsd_free (db);
return NULL;
@@ -354,8 +354,7 @@ static void *bsd_alloc (struct isdn_ppp_comp_data *data)
if (!decomp)
db->lens = NULL;
else {
- db->lens = (unsigned short *) vmalloc ((maxmaxcode + 1) *
- sizeof (db->lens[0]));
+ db->lens = vmalloc((maxmaxcode + 1) * sizeof(db->lens[0]));
if (!db->lens) {
bsd_free (db);
return (NULL);