summaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-03 17:28:15 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-02-04 18:22:35 (GMT)
commite68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86 (patch)
tree139ba4fc12ad7de52a247f2d66b41e364edb1aa3 /drivers/net/phy
parent0d2e7a5c608063f72048899d20505c2ee130566c (diff)
downloadlinux-e68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86.tar.xz
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/spi_ks8995.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c
index 41eb8ff..5c87eef 100644
--- a/drivers/net/phy/spi_ks8995.c
+++ b/drivers/net/phy/spi_ks8995.c
@@ -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;