wlcore: remove newly introduced alloc/OOM messages
authorLuciano Coelho <coelho@ti.com>
Mon, 11 Feb 2013 08:21:18 +0000 (10:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Feb 2013 20:34:58 +0000 (15:34 -0500)
In commit 0d2e7a5c (wireless: Remove unnecessary alloc/OOM messages,
alloc cleanups) OOM messages after alloc were removed from the wlcore
modules.

Commit afb43e6d (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>
drivers/net/wireless/ti/wlcore/sdio.c
drivers/net/wireless/ti/wlcore/spi.c

index 198028df6f4b98bb4514f667daec3ba3fe520065..29ef2492951fcdaa372611449fbc4c3cde4322f1 100644 (file)
@@ -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;
 
index 5ad2e100e59b1b650be4b1502da43e5b5995575d..e26447832683254fe26c417453bae702c1e1d1d1 100644 (file)
@@ -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) {