diff options
author | Joe Perches <joe@perches.com> | 2015-05-05 19:05:59 +0200 |
---|---|---|
committer | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2015-09-23 08:44:25 +0200 |
commit | 97464eddf9fdbe02abfc44676949e07708cf557f (patch) | |
tree | 1afc6a3ffa16ae7ea7461f3a5315bc8a13bbcae9 /drivers/net/arcnet/com20020.c | |
parent | arcnet: Remove unnecessary OOM messages (diff) | |
download | linux-97464eddf9fdbe02abfc44676949e07708cf557f.tar.xz linux-97464eddf9fdbe02abfc44676949e07708cf557f.zip |
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.c')
-rw-r--r-- | drivers/net/arcnet/com20020.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c index e813fc619ac9..bea386222149 100644 --- a/drivers/net/arcnet/com20020.c +++ b/drivers/net/arcnet/com20020.c @@ -140,7 +140,8 @@ int com20020_check(struct net_device *dev) outb(0 | RDDATAflag | AUTOINCflag, _ADDR_HI); outb(0, _ADDR_LO); - if ((status = inb(_MEMDATA)) != TESTvalue) { + status = inb(_MEMDATA); + if (status != TESTvalue) { arc_printk(D_NORMAL, dev, "Signature byte not found (%02Xh != D1h).\n", status); return -ENODEV; |