diff options
author | Joe Perches <joe@perches.com> | 2011-08-29 21:17:24 (GMT) |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-09-08 15:52:30 (GMT) |
commit | 320f422f629c7ed5d07b4186aa491d1e11d18a4c (patch) | |
tree | 8d32d97b2143abbab7bbbb19e8ef9b6e9235c2c4 /net/batman-adv/soft-interface.c | |
parent | 45485ad7d24f9f1de964b3aea8beb199dbac141c (diff) | |
download | linux-320f422f629c7ed5d07b4186aa491d1e11d18a4c.tar.xz |
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/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 7d8332e..aceeabc 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c @@ -801,10 +801,8 @@ struct net_device *softif_create(const char *name) soft_iface = alloc_netdev(sizeof(*bat_priv), name, interface_setup); - if (!soft_iface) { - pr_err("Unable to allocate the batman interface: %s\n", name); + if (!soft_iface) goto out; - } ret = register_netdevice(soft_iface); if (ret < 0) { |