summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hard-interface.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-08-29 14:17:24 -0700
committerMarek Lindner <lindner_marek@yahoo.de>2011-09-08 17:52:30 +0200
commit320f422f629c7ed5d07b4186aa491d1e11d18a4c (patch)
tree8d32d97b2143abbab7bbbb19e8ef9b6e9235c2c4 /net/batman-adv/hard-interface.c
parent45485ad7d24f9f1de964b3aea8beb199dbac141c (diff)
downloadblackbird-op-linux-320f422f629c7ed5d07b4186aa491d1e11d18a4c.tar.gz
blackbird-op-linux-320f422f629c7ed5d07b4186aa491d1e11d18a4c.zip
batman-adv: Remove unnecessary OOM logging messages
Removing unnecessary messages saves code and text. Site specific OOM messages are duplications of a generic MM out of memory message and aren't really useful, so just delete them. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/hard-interface.c')
-rw-r--r--net/batman-adv/hard-interface.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index 0cc0f04bf397..7704df468e0b 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -434,11 +434,8 @@ static struct hard_iface *hardif_add_interface(struct net_device *net_dev)
dev_hold(net_dev);
hard_iface = kmalloc(sizeof(*hard_iface), GFP_ATOMIC);
- if (!hard_iface) {
- pr_err("Can't add interface (%s): out of memory\n",
- net_dev->name);
+ if (!hard_iface)
goto release_dev;
- }
ret = sysfs_add_hardif(&hard_iface->hardif_obj, net_dev);
if (ret)
OpenPOWER on IntegriCloud