Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318009
b: refs/heads/master
c: 1a46eaf
h: refs/heads/master
i:
  318007: 112ef5d
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent 1dacd81 commit 8420805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 6594ac5dead7ad7cd10103d147eda3190fd49cad
refs/heads/master: 1a46eafe1c4a2bf45928beb280b378f5af904ed9
8 changes: 2 additions & 6 deletions trunk/drivers/staging/wlan-ng/prism2sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -1947,8 +1947,8 @@ static wlandevice_t *create_wlan(void)
hfa384x_t *hw = NULL;

/* Alloc our structures */
wlandev = kmalloc(sizeof(wlandevice_t), GFP_KERNEL);
hw = kmalloc(sizeof(hfa384x_t), GFP_KERNEL);
wlandev = kzalloc(sizeof(wlandevice_t), GFP_KERNEL);
hw = kzalloc(sizeof(hfa384x_t), GFP_KERNEL);

if (!wlandev || !hw) {
printk(KERN_ERR "%s: Memory allocation failure.\n", dev_info);
Expand All @@ -1957,10 +1957,6 @@ static wlandevice_t *create_wlan(void)
return NULL;
}

/* Clear all the structs */
memset(wlandev, 0, sizeof(wlandevice_t));
memset(hw, 0, sizeof(hfa384x_t));

/* Initialize the network device object. */
wlandev->nsdname = dev_info;
wlandev->msdstate = WLAN_MSD_HWPRESENT_PENDING;
Expand Down

0 comments on commit 8420805

Please sign in to comment.