* [2.6 patch] drivers/usb/class/usb-midi.c: remove dead code
@ 2005-03-25 1:05 Adrian Bunk
2005-03-28 20:45 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-03-25 1:05 UTC (permalink / raw)
To: gregkh; +Cc: linux-usb-devel, linux-kernel
This patch removes some obviously dead code found by the Coverity
checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.12-rc1-mm1-full/drivers/usb/class/usb-midi.c.old 2005-03-24 04:51:19.000000000 +0100
+++ linux-2.6.12-rc1-mm1-full/drivers/usb/class/usb-midi.c 2005-03-24 04:51:50.000000000 +0100
@@ -1451,8 +1451,6 @@ static struct usb_midi_device *parse_des
} else {
if ( oep < 15 ) {
pins = oep+1;
- if ( pins > 16 )
- pins = 16;
u->out[oep].endpoint = p1[2];
u->out[oep].cableId = ( 1 << pins ) - 1;
if ( u->out[oep].cableId )
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-28 20:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-25 1:05 [2.6 patch] drivers/usb/class/usb-midi.c: remove dead code Adrian Bunk
2005-03-28 20:45 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox