Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220035
b: refs/heads/master
c: a1b04b0
h: refs/heads/master
i:
  220033: 4dfb3b5
  220031: 43665b2
v: v3
  • Loading branch information
Jason Cooper authored and Greg Kroah-Hartman committed Oct 5, 2010
1 parent f8c72f5 commit 3447724
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 57c096b897fe59e106452500afbbe0e0f1f8e149
refs/heads/master: a1b04b0b33d2d5d2ecbc7c67845619bee493461e
25 changes: 13 additions & 12 deletions trunk/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ extern sdioh_info_t *sdioh_attach(osl_t *osh, void *bar0, uint irq)
return NULL;
}

if ((sd = (sdioh_info_t *) MALLOC(osh, sizeof(sdioh_info_t))) == NULL) {
sd = (sdioh_info_t *) MALLOC(osh, sizeof(sdioh_info_t));
if (sd == NULL) {
sd_err(("sdioh_attach: out of memory, malloced %d bytes\n",
MALLOCED(osh)));
return NULL;
Expand Down Expand Up @@ -417,12 +418,14 @@ sdioh_iovar_op(sdioh_info_t *si, const char *name,
sd_trace(("%s: Enter (%s %s)\n", __func__, (set ? "set" : "get"),
name));

if ((vi = bcm_iovar_lookup(sdioh_iovars, name)) == NULL) {
vi = bcm_iovar_lookup(sdioh_iovars, name);
if (vi == NULL) {
bcmerror = BCME_UNSUPPORTED;
goto exit;
}

if ((bcmerror = bcm_iovar_lencheck(vi, arg, len, set)) != 0)
bcmerror = bcm_iovar_lencheck(vi, arg, len, set);
if (bcmerror != 0)
goto exit;

/* Set up params so get and set can share the convenience variables */
Expand Down Expand Up @@ -1037,12 +1040,11 @@ sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write,
sd_data(("%s: Creating new %s Packet, len=%d\n",
__func__, write ? "TX" : "RX", buflen_u));
#ifdef DHD_USE_STATIC_BUF
if (!(mypkt =
PKTGET_STATIC(sd->osh, buflen_u, write ? TRUE : FALSE))) {
mypkt = PKTGET_STATIC(sd->osh, buflen_u, write ? TRUE : FALSE);
#else
if (!(mypkt = PKTGET(sd->osh, buflen_u,
write ? TRUE : FALSE))) {
mypkt = PKTGET(sd->osh, buflen_u, write ? TRUE : FALSE);
#endif /* DHD_USE_STATIC_BUF */
if (!mypkt) {
sd_err(("%s: PKTGET failed: len %d\n",
__func__, buflen_u));
return SDIOH_API_RC_FAIL;
Expand Down Expand Up @@ -1073,13 +1075,12 @@ sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write,
sd_data(("%s: Creating aligned %s Packet, len=%d\n",
__func__, write ? "TX" : "RX", PKTLEN(pkt)));
#ifdef DHD_USE_STATIC_BUF
if (!(mypkt =
PKTGET_STATIC(sd->osh, PKTLEN(pkt),
write ? TRUE : FALSE))) {
mypkt = PKTGET_STATIC(sd->osh, PKTLEN(pkt),
write ? TRUE : FALSE);
#else
if (!(mypkt =
PKTGET(sd->osh, PKTLEN(pkt), write ? TRUE : FALSE))) {
mypkt = PKTGET(sd->osh, PKTLEN(pkt), write ? TRUE : FALSE);
#endif /* DHD_USE_STATIC_BUF */
if (!mypkt) {
sd_err(("%s: PKTGET failed: len %d\n",
__func__, PKTLEN(pkt)));
return SDIOH_API_RC_FAIL;
Expand Down

0 comments on commit 3447724

Please sign in to comment.