Message ID | b000d5f0-c659-0d04-2c40-e70e25b68b13@users.sourceforge.net (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Kalle Valo |
Headers | show |
diff --git a/drivers/net/wireless/st/cw1200/cw1200_sdio.c b/drivers/net/wireless/st/cw1200/cw1200_sdio.c index 1037ec62659d..82c6827579a9 100644 --- a/drivers/net/wireless/st/cw1200/cw1200_sdio.c +++ b/drivers/net/wireless/st/cw1200/cw1200_sdio.c @@ -289,10 +289,8 @@ static int cw1200_sdio_probe(struct sdio_func *func, return -ENODEV; self = kzalloc(sizeof(*self), GFP_KERNEL); - if (!self) { - pr_err("Can't allocate SDIO hwbus_priv.\n"); + if (!self) return -ENOMEM; - } func->card->quirks |= MMC_QUIRK_LENIENT_FN0; diff --git a/drivers/net/wireless/st/cw1200/cw1200_spi.c b/drivers/net/wireless/st/cw1200/cw1200_spi.c index 412fb6e49aed..7b6d5e5c5a62 100644 --- a/drivers/net/wireless/st/cw1200/cw1200_spi.c +++ b/drivers/net/wireless/st/cw1200/cw1200_spi.c @@ -399,10 +399,8 @@ static int cw1200_spi_probe(struct spi_device *func) } self = devm_kzalloc(&func->dev, sizeof(*self), GFP_KERNEL); - if (!self) { - pr_err("Can't allocate SPI hwbus_priv."); + if (!self) return -ENOMEM; - } self->pdata = plat_data; self->func = func; diff --git a/drivers/net/wireless/st/cw1200/fwio.c b/drivers/net/wireless/st/cw1200/fwio.c index 30e7646d04af..79dd7a8ffb05 100644 --- a/drivers/net/wireless/st/cw1200/fwio.c +++ b/drivers/net/wireless/st/cw1200/fwio.c @@ -153,7 +153,6 @@ static int cw1200_load_firmware_cw1200(struct cw1200_common *priv) buf = kmalloc(DOWNLOAD_BLOCK_SIZE, GFP_KERNEL | GFP_DMA); if (!buf) { - pr_err("Can't allocate firmware load buffer.\n"); ret = -ENOMEM; goto firmware_release; }