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

Commit e64a5219 authored by roel kluin's avatar roel kluin Committed by Greg Kroah-Hartman
Browse files

USB: clean up redundant tests on unsigned



temp, bytes and param->{length,sglen,vary} are unsigned so
these tests do nothing.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3b438e30
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -455,9 +455,7 @@ static void qh_lines (
				(scratch >> 16) & 0x7fff,
				scratch,
				td->urb);
		if (temp < 0)
			temp = 0;
		else if (size < temp)
		if (size < temp)
			temp = size;
		size -= temp;
		next += temp;
@@ -466,9 +464,7 @@ static void qh_lines (
	}

	temp = snprintf (next, size, "\n");
	if (temp < 0)
		temp = 0;
	else if (size < temp)
	if (size < temp)
		temp = size;
	size -= temp;
	next += temp;
+0 −2
Original line number Diff line number Diff line
@@ -192,8 +192,6 @@ static struct urb *simple_alloc_urb (
{
	struct urb		*urb;

	if (bytes < 0)
		return NULL;
	urb = usb_alloc_urb (0, GFP_KERNEL);
	if (!urb)
		return urb;