summaryrefslogtreecommitdiff
path: root/drivers/net/arcnet/com20020-isa.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-05-05 20:05:59 +0300
committerMichael Grzeschik <m.grzeschik@pengutronix.de>2015-09-23 09:44:25 +0300
commit97464eddf9fdbe02abfc44676949e07708cf557f (patch)
tree1afc6a3ffa16ae7ea7461f3a5315bc8a13bbcae9 /drivers/net/arcnet/com20020-isa.c
parent5628d98fc5e99e29f2a480d4a7b1faba94a0d422 (diff)
downloadlinux-97464eddf9fdbe02abfc44676949e07708cf557f.tar.xz
arcnet: Remove assignments from ifs
Move the assignment above the if like general kernel style. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Diffstat (limited to 'drivers/net/arcnet/com20020-isa.c')
-rw-r--r--drivers/net/arcnet/com20020-isa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/arcnet/com20020-isa.c b/drivers/net/arcnet/com20020-isa.c
index f3b2222bcada..352500b8d875 100644
--- a/drivers/net/arcnet/com20020-isa.c
+++ b/drivers/net/arcnet/com20020-isa.c
@@ -107,7 +107,9 @@ static int __init com20020isa_probe(struct net_device *dev)
}
lp->card_name = "ISA COM20020";
- if ((err = com20020_found(dev, 0)) != 0)
+
+ err = com20020_found(dev, 0);
+ if (err != 0)
goto out;
return 0;