summaryrefslogtreecommitdiff
path: root/net/decnet
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-12-01 09:01:54 -0800
committerEric Anholt <eric@anholt.net>2009-12-01 09:01:54 -0800
commitf40d6817a5c2bf84f5fe7b5d1a83f1e8f8669951 (patch)
tree1c515a34a60f65cbfd3cf1a387427d0a9fdf878f /net/decnet
parent103a196f4224dc6872081305cf7f82ebf67aa7bd (diff)
parent46557bef3f3834ac33031c7be27d39d90d507442 (diff)
downloadlinux-3.10-f40d6817a5c2bf84f5fe7b5d1a83f1e8f8669951.tar.gz
linux-3.10-f40d6817a5c2bf84f5fe7b5d1a83f1e8f8669951.tar.bz2
linux-3.10-f40d6817a5c2bf84f5fe7b5d1a83f1e8f8669951.zip
Merge remote branch 'airlied/drm-next' into drm-intel-next
Diffstat (limited to 'net/decnet')
-rw-r--r--net/decnet/sysctl_net_decnet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/decnet/sysctl_net_decnet.c b/net/decnet/sysctl_net_decnet.c
index 26b0ab1e9f5..2036568beea 100644
--- a/net/decnet/sysctl_net_decnet.c
+++ b/net/decnet/sysctl_net_decnet.c
@@ -263,11 +263,10 @@ static int dn_def_dev_strategy(ctl_table *table,
return -ENODEV;
rv = -ENODEV;
- if (dev->dn_ptr != NULL) {
+ if (dev->dn_ptr != NULL)
rv = dn_dev_set_default(dev, 1);
- if (rv)
- dev_put(dev);
- }
+ if (rv)
+ dev_put(dev);
}
return rv;