Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109437
b: refs/heads/master
c: 9a52028
h: refs/heads/master
i:
  109435: 79c2e65
v: v3
  • Loading branch information
Adrian Bunk authored and John W. Linville committed Sep 2, 2008
1 parent e7a4fc7 commit ac63f86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: 667d41008eb8a0e1d495d6c0a6143b43fe587c98
refs/heads/master: 9a52028e534b0567913a4144060e774891c00a37
13 changes: 3 additions & 10 deletions trunk/drivers/net/wireless/libertas/if_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static int if_cs_prog_helper(struct if_cs_card *card)
if (ret < 0) {
lbs_pr_err("can't download helper at 0x%x, ret %d\n",
sent, ret);
goto done;
goto err_release;
}

if (count == 0)
Expand All @@ -604,9 +604,8 @@ static int if_cs_prog_helper(struct if_cs_card *card)
sent += count;
}

err_release:
release_firmware(fw);
ret = 0;

done:
lbs_deb_leave_args(LBS_DEB_CS, "ret %d", ret);
return ret;
Expand Down Expand Up @@ -676,14 +675,8 @@ static int if_cs_prog_real(struct if_cs_card *card)
}

ret = if_cs_poll_while_fw_download(card, IF_CS_SCRATCH, 0x5a);
if (ret < 0) {
if (ret < 0)
lbs_pr_err("firmware download failed\n");
goto err_release;
}

ret = 0;
goto done;


err_release:
release_firmware(fw);
Expand Down

0 comments on commit ac63f86

Please sign in to comment.