• Alan Stern's avatar
    USB: UDC: net22{80,72}: remove mistaken test of req->zero · de497f63
    Alan Stern authored
    The net2280 UDC driver (and also net2272, probably via copy-and-paste)
    incorrectly checks the req->zero flag during OUT transfers, after
    copying data from the UDC's FIFO into memory.  This makes no sense at
    all; the "zero" flag indicates that an extra zero-length packet should
    be appended to an IN transfer if the length is an even multiple of the
    maxpacket size.  It has nothing to do with OUT transfers.
    
    In practice this doesn't cause any problems because gadget drivers
    never set req->zero for OUT transfers anyway.  Still, it is an error
    and unnecessary code, so this patch removes the check.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
    de497f63
net2280.c 99.8 KB