1
0
Fork 0

net: pegasus: simplify logical constraint

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

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
xypron.glpk@gmx.de 2016-05-18 20:40:51 +02:00 committed by David S. Miller
parent 7639dad93a
commit bbf178e0a0
1 changed files with 1 additions and 1 deletions

View File

@ -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];