aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/x25_asy.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-03 12:28:12 -0500
committerDavid S. Miller <davem@davemloft.net>2013-02-04 13:22:34 -0500
commit1d5d1fdc52b879d8d2bb40546472b4dcfd99f118 (patch)
tree1a473daf8616769c3aaa8272d2c64bfca0a43963 /drivers/net/wan/x25_asy.c
parent38673c8218a6bcaac97b0243089e33617e28f43f (diff)
wan: Remove unnecessary alloc/OOM messages
alloc failures already get standardized OOM messages and a dump_stack. Hoist assigns from if tests. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/x25_asy.c')
-rw-r--r--drivers/net/wan/x25_asy.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c
index 44db8b75a531..5895f1978691 100644
--- a/drivers/net/wan/x25_asy.c
+++ b/drivers/net/wan/x25_asy.c
@@ -128,7 +128,6 @@ static int x25_asy_change_mtu(struct net_device *dev, int newmtu)
128 rbuff = kmalloc(len + 4, GFP_ATOMIC); 128 rbuff = kmalloc(len + 4, GFP_ATOMIC);
129 129
130 if (xbuff == NULL || rbuff == NULL) { 130 if (xbuff == NULL || rbuff == NULL) {
131 netdev_warn(dev, "unable to grow X.25 buffers, MTU change cancelled\n");
132 kfree(xbuff); 131 kfree(xbuff);
133 kfree(rbuff); 132 kfree(rbuff);
134 return -ENOMEM; 133 return -ENOMEM;