case USB_REQ_GET_CONFIGURATION:
if (ctrl->bRequestType != USB_DIR_IN)
goto unknown;
- if (cdev->config) {
+ if (cdev->config)
*(u8 *)req->buf = cdev->config->bConfigurationValue;
- value = min(w_length, (u16) 1);
- } else {
+ else
*(u8 *)req->buf = 0;
- }
+ value = min(w_length, (u16) 1);
break;
/* function drivers must handle get/set altsetting; if there's