Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220033
b: refs/heads/master
c: c74c95c
h: refs/heads/master
i:
  220031: 43665b2
v: v3
  • Loading branch information
Jason Cooper authored and Greg Kroah-Hartman committed Oct 5, 2010
1 parent e0a7fc4 commit 4dfb3b5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 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: eb7f37b3d56839fc0c3b631146f8b3be96b71879
refs/heads/master: c74c95cd1f6e4b59ecd75c0584b8b5589e7b60a3
19 changes: 12 additions & 7 deletions trunk/drivers/staging/brcm80211/brcmfmac/bcmsdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ bcmsdh_info_t *bcmsdh_attach(osl_t *osh, void *cfghdl, void **regsva, uint irq)
{
bcmsdh_info_t *bcmsdh;

if ((bcmsdh =
(bcmsdh_info_t *) MALLOC(osh, sizeof(bcmsdh_info_t))) == NULL) {
bcmsdh = (bcmsdh_info_t *) MALLOC(osh, sizeof(bcmsdh_info_t));
if (bcmsdh == NULL) {
BCMSDH_ERROR(("bcmsdh_attach: out of memory, "
"malloced %d bytes\n", MALLOCED(osh)));
return NULL;
Expand All @@ -69,7 +69,8 @@ bcmsdh_info_t *bcmsdh_attach(osl_t *osh, void *cfghdl, void **regsva, uint irq)
/* save the handler locally */
l_bcmsdh = bcmsdh;

if (!(bcmsdh->sdioh = sdioh_attach(osh, cfghdl, irq))) {
bcmsdh->sdioh = sdioh_attach(osh, cfghdl, irq);
if (!bcmsdh->sdioh) {
bcmsdh_detach(osh, bcmsdh);
return NULL;
}
Expand Down Expand Up @@ -317,7 +318,8 @@ int bcmsdh_cis_read(void *sdh, uint func, uint8 * cis, uint length)
if (ascii) {
/* Move binary bits to tmp and format them
into the provided buffer. */
if ((tmp_buf = (uint8 *) MALLOC(bcmsdh->osh, length)) == NULL) {
tmp_buf = (uint8 *) MALLOC(bcmsdh->osh, length);
if (tmp_buf == NULL) {
BCMSDH_ERROR(("%s: out of memory\n", __func__));
return BCME_NOMEM;
}
Expand Down Expand Up @@ -420,7 +422,8 @@ uint32 bcmsdh_reg_write(void *sdh, uint32 addr, uint size, uint32 data)
ASSERT(bcmsdh->init_success);

if (bar0 != bcmsdh->sbwad) {
if ((err = bcmsdhsdio_set_sbaddr_window(bcmsdh, bar0)))
err = bcmsdhsdio_set_sbaddr_window(bcmsdh, bar0);
if (err)
return err;

bcmsdh->sbwad = bar0;
Expand Down Expand Up @@ -471,7 +474,8 @@ bcmsdh_recv_buf(void *sdh, uint32 addr, uint fn, uint flags,
return BCME_UNSUPPORTED;

if (bar0 != bcmsdh->sbwad) {
if ((err = bcmsdhsdio_set_sbaddr_window(bcmsdh, bar0)))
err = bcmsdhsdio_set_sbaddr_window(bcmsdh, bar0);
if (err)
return err;

bcmsdh->sbwad = bar0;
Expand Down Expand Up @@ -515,7 +519,8 @@ bcmsdh_send_buf(void *sdh, uint32 addr, uint fn, uint flags,
return BCME_UNSUPPORTED;

if (bar0 != bcmsdh->sbwad) {
if ((err = bcmsdhsdio_set_sbaddr_window(bcmsdh, bar0)))
err = bcmsdhsdio_set_sbaddr_window(bcmsdh, bar0);
if (err)
return err;

bcmsdh->sbwad = bar0;
Expand Down

0 comments on commit 4dfb3b5

Please sign in to comment.