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

Commit 840689a8 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: lan78xx: Avoid unnecessary self assignment"

parents 61b2bbd1 10b9d109
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -923,11 +923,9 @@ static int lan78xx_read_otp(struct lan78xx_net *dev, u32 offset,
	ret = lan78xx_read_raw_otp(dev, 0, 1, &sig);

	if (ret == 0) {
		if (sig == OTP_INDICATOR_1)
			offset = offset;
		else if (sig == OTP_INDICATOR_2)
		if (sig == OTP_INDICATOR_2)
			offset += 0x100;
		else
		else if (sig != OTP_INDICATOR_1)
			ret = -EINVAL;
		if (!ret)
			ret = lan78xx_read_raw_otp(dev, offset, length, data);