Commit fa518772 authored by Rex Nie's avatar Rex Nie Committed by Greg Kroah-Hartman
Browse files

USB: core: remove dead code in do_proc_bulk()

parent e56aac6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1298,7 +1298,7 @@ static int do_proc_bulk(struct usb_dev_state *ps,
		return ret;

	len1 = bulk->len;
	if (len1 < 0 || len1 >= (INT_MAX - sizeof(struct urb)))
	if (len1 >= (INT_MAX - sizeof(struct urb)))
		return -EINVAL;

	if (bulk->ep & USB_DIR_IN)