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:

committed by
David S. Miller

parent
0d2e7a5c60
commit
e68ed8f0d8
@@ -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;
|
||||
|
Reference in New Issue
Block a user