USB: UDC: net2280: Remove redundant "if" condition
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 15 Apr 2019 17:36:58 +0000 (13:36 -0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:47 +0000 (09:13 +0300)
commit6574abe69946589bf0f69cf9b32f6a2c71ae764f
tree011ff7cf6bd66d893a8a33503af2a1571d31bd9b
parent2100e3ca3676e894fa48b8f6f01d01733387fe81
USB: UDC: net2280: Remove redundant "if" condition

The net2280 driver includes an unnecessary test for an endpoint's
queue being empty.  The test is redundant; it sits inside a
conditional block of an "if" statement which already tests the
endpoint's queue.

This patch removes the redundant test.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/net2280.c