Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224555
b: refs/heads/master
c: ca4a083
h: refs/heads/master
i:
  224553: 14e6660
  224551: 6d16413
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Nov 16, 2010
1 parent 0e0125c commit cd3dd3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 54435f9ec837cf0bb0ea02a2bb6362a6aaef5250
refs/heads/master: ca4a0831917d6541b45f03542257fcb20dc9cf4a
7 changes: 3 additions & 4 deletions trunk/drivers/ssb/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus,
struct ssb_sprom *sprom)
{
const struct ssb_sprom *fallback;
int err = -ENOMEM;
int err;
u16 *buf;

if (!ssb_is_sprom_available(bus)) {
Expand All @@ -646,7 +646,7 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus,

buf = kcalloc(SSB_SPROMSIZE_WORDS_R123, sizeof(u16), GFP_KERNEL);
if (!buf)
goto out;
return -ENOMEM;
bus->sprom_size = SSB_SPROMSIZE_WORDS_R123;
sprom_do_read(bus, buf);
err = sprom_check_crc(buf, bus->sprom_size);
Expand All @@ -656,7 +656,7 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus,
buf = kcalloc(SSB_SPROMSIZE_WORDS_R4, sizeof(u16),
GFP_KERNEL);
if (!buf)
goto out;
return -ENOMEM;
bus->sprom_size = SSB_SPROMSIZE_WORDS_R4;
sprom_do_read(bus, buf);
err = sprom_check_crc(buf, bus->sprom_size);
Expand All @@ -678,7 +678,6 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus,

out_free:
kfree(buf);
out:
return err;
}

Expand Down

0 comments on commit cd3dd3c

Please sign in to comment.