]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: gadget: kill unreachable code in musb_g_rx()
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Fri, 24 Sep 2010 10:44:12 +0000 (13:44 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:55 +0000 (10:21 -0700)
commitdd0c867c9280daef371202f0234a6adcb25d95c2
treef7b76883c3dfe7ce564cd6bffd64d0d1dad27229
parentb88900604a3628cbcb54569d3afcd6a576e2b153
usb: musb: gadget: kill unreachable code in musb_g_rx()

musb_g_rx() always returns if next_request() call yields NULL, so the DBG()
near the function's end can never be invoked. Remove it along with unneeded
'return'; also remove the duplicate 'request' check...

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