~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/usb/gadget/f_rndis.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
         */
421
421
        case ((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8)
422
422
                        | USB_CDC_SEND_ENCAPSULATED_COMMAND:
423
 
                if (w_length > req->length || w_value
424
 
                                || w_index != rndis->ctrl_id)
 
423
                if (w_value || w_index != rndis->ctrl_id)
425
424
                        goto invalid;
426
425
                /* read the request; process it later */
427
426
                value = w_length;