diff options
Diffstat (limited to 'net/irda/irda_device.c')
| -rw-r--r-- | net/irda/irda_device.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/irda/irda_device.c b/net/irda/irda_device.c index e3debbdb67f5..7e7a31798d8d 100644 --- a/net/irda/irda_device.c +++ b/net/irda/irda_device.c | |||
| @@ -29,7 +29,6 @@ | |||
| 29 | * | 29 | * |
| 30 | ********************************************************************/ | 30 | ********************************************************************/ |
| 31 | 31 | ||
| 32 | #include <linux/config.h> | ||
| 33 | #include <linux/string.h> | 32 | #include <linux/string.h> |
| 34 | #include <linux/proc_fs.h> | 33 | #include <linux/proc_fs.h> |
| 35 | #include <linux/skbuff.h> | 34 | #include <linux/skbuff.h> |
| @@ -402,12 +401,10 @@ dongle_t *irda_device_dongle_init(struct net_device *dev, int type) | |||
| 402 | } | 401 | } |
| 403 | 402 | ||
| 404 | /* Allocate dongle info for this instance */ | 403 | /* Allocate dongle info for this instance */ |
| 405 | dongle = kmalloc(sizeof(dongle_t), GFP_KERNEL); | 404 | dongle = kzalloc(sizeof(dongle_t), GFP_KERNEL); |
| 406 | if (!dongle) | 405 | if (!dongle) |
| 407 | goto out; | 406 | goto out; |
| 408 | 407 | ||
| 409 | memset(dongle, 0, sizeof(dongle_t)); | ||
| 410 | |||
| 411 | /* Bind the registration info to this particular instance */ | 408 | /* Bind the registration info to this particular instance */ |
| 412 | dongle->issue = reg; | 409 | dongle->issue = reg; |
| 413 | dongle->dev = dev; | 410 | dongle->dev = dev; |
