Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170979
b: refs/heads/master
c: a163acc
h: refs/heads/master
i:
  170977: 561ec56
  170975: 20849e9
v: v3
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Oct 27, 2009
1 parent 9ea49d4 commit cfb659e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 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: 01c09162cd6170f3671825d6d5f2c1ae7b27cbf3
refs/heads/master: a163acce485a9629418659ff74737b89ba2c1751
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/wl12xx/wl1271.h
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ struct wl1271 {
u32 buffer_32;
u32 buffer_cmd;
u32 buffer_busyword[WL1271_BUSY_WORD_CNT];
struct wl1271_rx_descriptor *rx_descriptor;

struct wl1271_fw_status *fw_status;
struct wl1271_tx_hw_res_if *tx_res_if;
Expand Down
13 changes: 0 additions & 13 deletions trunk/drivers/net/wireless/wl12xx/wl1271_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1893,13 +1893,6 @@ static int __devinit wl1271_probe(struct spi_device *spi)
wl->state = WL1271_STATE_OFF;
mutex_init(&wl->mutex);

wl->rx_descriptor = kmalloc(sizeof(*wl->rx_descriptor), GFP_KERNEL);
if (!wl->rx_descriptor) {
wl1271_error("could not allocate memory for rx descriptor");
ret = -ENOMEM;
goto out_free;
}

/* This is the only SPI value that we need to set here, the rest
* comes from the board-peripherals file */
spi->bits_per_word = 32;
Expand Down Expand Up @@ -1965,9 +1958,6 @@ static int __devinit wl1271_probe(struct spi_device *spi)
free_irq(wl->irq, wl);

out_free:
kfree(wl->rx_descriptor);
wl->rx_descriptor = NULL;

ieee80211_free_hw(hw);

return ret;
Expand All @@ -1988,9 +1978,6 @@ static int __devexit wl1271_remove(struct spi_device *spi)
kfree(wl->nvs);
wl->nvs = NULL;

kfree(wl->rx_descriptor);
wl->rx_descriptor = NULL;

kfree(wl->fw_status);
kfree(wl->tx_res_if);

Expand Down

0 comments on commit cfb659e

Please sign in to comment.