Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186770
b: refs/heads/master
c: 46800b2
h: refs/heads/master
v: v3
  • Loading branch information
Svenne Krap authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 7912570 commit a673337
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 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: bc2955ddf48d2da94019680fa46deae88d39b40e
refs/heads/master: 46800b225f8c9dc264e1e9c15b1e104b9e0af5b5
24 changes: 16 additions & 8 deletions trunk/drivers/staging/wlan-ng/hfa384x_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1909,16 +1909,20 @@ int hfa384x_drvr_flashdl_enable(hfa384x_t *hw)
return -EINVAL;

/* Retrieve the buffer loc&size and timeout */
if ((result = hfa384x_drvr_getconfig(hw, HFA384x_RID_DOWNLOADBUFFER,
&(hw->bufinfo),
sizeof(hw->bufinfo)))) {

result = hfa384x_drvr_getconfig(hw, HFA384x_RID_DOWNLOADBUFFER,
&(hw->bufinfo), sizeof(hw->bufinfo));
if (result) {
return result;
}
hw->bufinfo.page = le16_to_cpu(hw->bufinfo.page);
hw->bufinfo.offset = le16_to_cpu(hw->bufinfo.offset);
hw->bufinfo.len = le16_to_cpu(hw->bufinfo.len);
if ((result = hfa384x_drvr_getconfig16(hw, HFA384x_RID_MAXLOADTIME,
&(hw->dltimeout)))) {

result = hfa384x_drvr_getconfig16(hw, HFA384x_RID_MAXLOADTIME,
&(hw->dltimeout));

if (result) {
return result;
}
hw->dltimeout = le16_to_cpu(hw->dltimeout);
Expand Down Expand Up @@ -3073,7 +3077,9 @@ static void hfa384x_usbctlxq_run(hfa384x_t *hw)

/* Now submit the URB and update the CTLX's state
*/
if ((result = SUBMIT_URB(&hw->ctlx_urb, GFP_ATOMIC)) == 0) {

result = SUBMIT_URB(&hw->ctlx_urb, GFP_ATOMIC);
if (result == 0) {
/* This CTLX is now running on the active queue */
head->state = CTLX_REQ_SUBMITTED;

Expand Down Expand Up @@ -3599,7 +3605,8 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev,
skblen - sizeof(p80211_caphdr_t));
}

if ((skb = dev_alloc_skb(skblen)) == NULL) {
skb = dev_alloc_skb(skblen);
if (skb == NULL) {
printk(KERN_ERR
"alloc_skb failed trying to allocate %d bytes\n",
skblen);
Expand Down Expand Up @@ -3870,7 +3877,8 @@ static void hfa384x_ctlxout_callback(struct urb *urb)

delresp:
if (delete_resptimer) {
if ((timer_ok = del_timer(&hw->resptimer)) != 0) {
timer_ok = del_timer(&hw->resptimer);
if (timer_ok != 0) {
hw->resp_timer_done = 1;
}
}
Expand Down

0 comments on commit a673337

Please sign in to comment.