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

Commit 365a0442 authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Johan Hovold
Browse files

USB: mos7840: remove redundant condition



This patch removes redundant condition.

 (length && length > 5) can be reduced to a single evaluation.

Tested by compilation only.
Caught by cppcheck.

Signed-off-by: default avatarGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 232dce89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -635,7 +635,7 @@ static void mos7840_interrupt_callback(struct urb *urb)
	 * Byte 4 IIR Port 4 (port.number is 3)
	 * Byte 5 FIFO status for both */

	if (length && length > 5) {
	if (length > 5) {
		dev_dbg(&urb->dev->dev, "%s", "Wrong data !!!\n");
		return;
	}