Skip to content

Commit

Permalink
wlcore: remove newly introduced alloc/OOM messages
Browse files Browse the repository at this point in the history
In commit 0d2e7a5 (wireless: Remove unnecessary alloc/OOM messages,
alloc cleanups) OOM messages after alloc were removed from the wlcore
modules.

Commit afb43e6 (wlcore: remove if_ops from platform_data)
reintroduced a couple of those.  This patch removes them.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luciano Coelho authored and John W. Linville committed Feb 11, 2013
1 parent d9d76a0 commit f1045f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/ti/wlcore/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,8 @@ static int wl1271_probe(struct sdio_func *func,
return -ENODEV;

pdev_data = kzalloc(sizeof(*pdev_data), GFP_KERNEL);
if (!pdev_data) {
dev_err(&func->dev, "can't allocate platdev_data\n");
if (!pdev_data)
goto out;
}

pdev_data->if_ops = &sdio_ops;

Expand Down
4 changes: 1 addition & 3 deletions drivers/net/wireless/ti/wlcore/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,8 @@ static int wl1271_probe(struct spi_device *spi)
int ret = -ENOMEM;

pdev_data = kzalloc(sizeof(*pdev_data), GFP_KERNEL);
if (!pdev_data) {
dev_err(&spi->dev, "can't allocate platdev_data\n");
if (!pdev_data)
goto out;
}

pdev_data->pdata = spi->dev.platform_data;
if (!pdev_data->pdata) {
Expand Down

0 comments on commit f1045f5

Please sign in to comment.