USB: g_printer: fix handling zero-length packet
authorSangSu Park <[email protected]>
Mon, 22 Sep 2008 22:41:15 +0000 (15:41 -0700)
committerGreg Kroah-Hartman <[email protected]>
Fri, 17 Oct 2008 21:40:56 +0000 (14:40 -0700)
commit8296345a35551414b07419f4c9223734c1fc5437
treeca1607143d3ef663f77b9520de9d992df6f0f58e
parent0b14c3881d4b91272b779f4037e263d392de058f
USB: g_printer: fix handling zero-length packet

g_printer doesn't have to check whether the data size is a multiple of
MaxPacketSize, because device controller driver already make that check.

Signed-off-by: SangSu Park<[email protected]>
Cc: Alan Stern <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/gadget/printer.c