Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249401
b: refs/heads/master
c: f835f45
h: refs/heads/master
i:
  249399: 902620a
v: v3
  • Loading branch information
Henry Ptasinski authored and Greg Kroah-Hartman committed May 10, 2011
1 parent 7329562 commit c2de60c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 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: fc84a7100fdf1093a5580852838e842d57c506be
refs/heads/master: f835f455169913e89fe0c876cf10dfad15fb3a20
29 changes: 0 additions & 29 deletions trunk/drivers/staging/brcm80211/util/nvram/nvram_ro.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,35 +42,6 @@ static vars_t *vars;

static char *findvar(char *vars, char *lim, const char *name);

#if defined(FLASH)
/* copy flash to ram */
static void get_flash_nvram(si_t *sih, struct nvram_header *nvh)
{
uint nvs, bufsz;
vars_t *new;

nvs = R_REG(&nvh->len) - sizeof(struct nvram_header);
bufsz = nvs + VARS_T_OH;

new = kmalloc(bufsz, GFP_ATOMIC);
if (new == NULL) {
NVR_MSG(("Out of memory for flash vars\n"));
return;
}
new->vars = (char *)new + VARS_T_OH;

new->bufsz = bufsz;
new->size = nvs;
new->next = vars;
vars = new;

memcpy(new->vars, &nvh[1], nvs);

NVR_MSG(("%s: flash nvram @ %p, copied %d bytes to %p\n", __func__,
nvh, nvs, new->vars));
}
#endif /* FLASH */

int nvram_init(void *si)
{

Expand Down

0 comments on commit c2de60c

Please sign in to comment.