Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97464edd authored by Joe Perches's avatar Joe Perches Committed by Michael Grzeschik
Browse files

arcnet: Remove assignments from ifs



Move the assignment above the if like general kernel style.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
parent 5628d98f
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -107,7 +107,9 @@ static int __init com20020isa_probe(struct net_device *dev)
	}
	}


	lp->card_name = "ISA COM20020";
	lp->card_name = "ISA COM20020";
	if ((err = com20020_found(dev, 0)) != 0)

	err = com20020_found(dev, 0);
	if (err != 0)
		goto out;
		goto out;


	return 0;
	return 0;
+2 −1
Original line number Original line Diff line number Diff line
@@ -140,7 +140,8 @@ int com20020_check(struct net_device *dev)
	outb(0 | RDDATAflag | AUTOINCflag, _ADDR_HI);
	outb(0 | RDDATAflag | AUTOINCflag, _ADDR_HI);
	outb(0, _ADDR_LO);
	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",
		arc_printk(D_NORMAL, dev, "Signature byte not found (%02Xh != D1h).\n",
			   status);
			   status);
		return -ENODEV;
		return -ENODEV;
+2 −1
Original line number Original line Diff line number Diff line
@@ -196,7 +196,8 @@ static int __init com90io_probe(struct net_device *dev)
	outb(AUTOINCflag, _ADDR_HI);
	outb(AUTOINCflag, _ADDR_HI);
	outb(0, _ADDR_LO);
	outb(0, _ADDR_LO);


	if ((status = inb(_MEMDATA)) != 0xd1) {
	status = inb(_MEMDATA);
	if (status != 0xd1) {
		arc_printk(D_INIT_REASONS, dev, "Signature byte not found (%Xh instead).\n",
		arc_printk(D_INIT_REASONS, dev, "Signature byte not found (%Xh instead).\n",
			   status);
			   status);
		goto err_out;
		goto err_out;