Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249069
b: refs/heads/master
c: 4008386
h: refs/heads/master
i:
  249067: 5e94780
v: v3
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Apr 20, 2011
1 parent 977eb1b commit 3b91309
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 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: cc614b6970ed9957d51255682c2784c2310623af
refs/heads/master: 400838659314cc67032f35962eee5a8639981b61
3 changes: 1 addition & 2 deletions trunk/drivers/staging/rtl8712/rtl871x_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,7 @@ u8 r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork)
}
psecnetwork = (struct ndis_wlan_bssid_ex *)&psecuritypriv->sec_bss;
if (psecnetwork == NULL) {
if (pcmd != NULL)
kfree((unsigned char *)pcmd);
kfree(pcmd);
return _FAIL;
}
memset(psecnetwork, 0, t_len);
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/staging/rtl8712/rtl871x_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ static uint _init_intf_hdl(struct _adapter *padapter,
goto _init_intf_hdl_fail;
return _SUCCESS;
_init_intf_hdl_fail:
if (pintf_priv)
kfree((u8 *)pintf_priv);
kfree(pintf_priv);
return _FAIL;
}

Expand All @@ -84,8 +83,7 @@ static void _unload_intf_hdl(struct intf_priv *pintfpriv)

unload_intf_priv = &r8712_usb_unload_intf_priv;
unload_intf_priv(pintfpriv);
if (pintfpriv)
kfree((u8 *)pintfpriv);
kfree(pintfpriv);
}

static uint register_intf_hdl(u8 *dev, struct intf_hdl *pintfhdl)
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1732,8 +1732,7 @@ static int r871x_wx_set_enc_ext(struct net_device *dev,
memcpy(param + 1, pext + 1, pext->key_len);
}
ret = wpa_set_encryption(dev, param, param_len);
if (param)
kfree((u8 *)param);
kfree(param);
return ret;
}

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/rtl8712/rtl871x_mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ void r8712_SetChannel(struct _adapter *pAdapter)
pparm = (struct SetChannel_parm *)_malloc(sizeof(struct
SetChannel_parm));
if (pparm == NULL) {
if (pcmd != NULL)
kfree((u8 *)pcmd);
kfree(pcmd);
return;
}
pparm->curr_ch = pAdapter->mppriv.curr_ch;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/rtl8712/rtl871x_xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,7 @@ static void free_hwxmits(struct _adapter *padapter)
{
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;

if (pxmitpriv->hwxmits)
kfree((u8 *)pxmitpriv->hwxmits);
kfree(pxmitpriv->hwxmits);
}

static void init_hwxmits(struct hw_xmit *phwxmit, sint entry)
Expand Down

0 comments on commit 3b91309

Please sign in to comment.