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

Commit bbf178e0 authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by David S. Miller
Browse files

net: pegasus: simplify logical constraint



If !count is true, count < 4 is also true.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7639dad9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -473,7 +473,7 @@ static void read_bulk_callback(struct urb *urb)
		goto goon;
	}

	if (!count || count < 4)
	if (count < 4)
		goto goon;

	rx_status = buf[count - 2];