usb: musb: gadget: kill duplicate code in musb_gadget_queue()
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Fri, 24 Sep 2010 10:44:11 +0000 (13:44 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 8 Nov 2010 07:29:55 +0000 (09:29 +0200)
commit07397021058b7db468b67f8c41ce29ef6331ab92
tree0b14d1a15010cfa35abad68161156c19de7d7e6b
parent19aab56c7f68a577d638a98c019b89420943ee70
usb: musb: gadget: kill duplicate code in musb_gadget_queue()

musb_gadget_queue() checks for '!req->buf' condition twice:
in the second case the code is both duplicated and unreachable
as the first check returns early.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c