drivers:net:misc: Remove unnecessary alloc/OOM messages

alloc failures already get standardized OOM
messages and a dump_stack.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Joe Perches
2013-02-03 17:28:15 +00:00
committed by David S. Miller
parent 0d2e7a5c60
commit e68ed8f0d8
3 changed files with 3 additions and 12 deletions

View File

@@ -275,10 +275,8 @@ static int ks8995_probe(struct spi_device *spi)
pdata = spi->dev.platform_data;
ks = kzalloc(sizeof(*ks), GFP_KERNEL);
if (!ks) {
dev_err(&spi->dev, "no memory for private data\n");
if (!ks)
return -ENOMEM;
}
mutex_init(&ks->lock);
ks->pdata = pdata;