Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64543
b: refs/heads/master
c: 7c8347a
h: refs/heads/master
i:
  64541: 0486510
  64539: 68712a1
  64535: 3ac713b
  64527: ee66db4
  64511: c3008c1
v: v3
  • Loading branch information
Jesper Juhl authored and David S. Miller committed Aug 27, 2007
1 parent 5ad4e18 commit 07be55a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c573f73ce95d7e421cb4b9928dd41ac9518fcccf
refs/heads/master: 7c8347a91dbbb723d8ed106ec817dabac97f2bbc
5 changes: 2 additions & 3 deletions trunk/drivers/isdn/i4l/isdn_bsdcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/i4l/isdn_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 07be55a

Please sign in to comment.