FS#10119 - Fix switch case in usb_core.c

Attached to Project: Rockbox
Opened by Tomer Shalev (tomers) - Friday, 10 April 2009, 22:05 GMT
Last edited by Frank Gevaerts (fg) - Saturday, 11 April 2009, 12:57 GMT
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Version 3.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This is obviously a typo. I can't see how this code ever compiled...
This task depends upon

Closed by  Frank Gevaerts (fg)
Saturday, 11 April 2009, 12:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  Thanks, committed as r20685. I wish I could claim I did this on purpose :)
Comment by Boris Gjenero (dreamlayers) - Saturday, 11 April 2009, 01:34 GMT
Yes, that looks like a typo. However, it is valid C, and it doesn't lead to a bug. Case statements are kind of like labels used by goto. You can do unusual things with them, such as