Changeset 904b1bc in mainline for uspace/lib/usbhost/src/ddf_helpers.c


Ignore:
Timestamp:
2018-05-22T10:36:58Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a4eb3ba2
Parents:
4f8772d4
git-author:
Jiri Svoboda <jiri@…> (2018-05-21 17:36:30)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-22 10:36:58)
Message:

Fix remaining ccheck issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/ddf_helpers.c

    r4f8772d4 r904b1bc  
    6666 */
    6767static errno_t register_endpoint(ddf_fun_t *fun, usb_pipe_desc_t *pipe_desc,
    68      const usb_endpoint_descriptors_t *ep_desc)
     68    const usb_endpoint_descriptors_t *ep_desc)
    6969{
    7070        assert(fun);
     
    9292}
    9393
    94  /**
    95   * DDF usbhc_iface callback. Unregister endpoint that makes the other end of
    96   * the pipe described.
    97   *
    98   * @param fun DDF function of the device in question.
    99   * @param pipe_desc Pipe description.
    100   * @return Error code.
    101   */
     94/**
     95 * DDF usbhc_iface callback. Unregister endpoint that makes the other end of
     96 * the pipe described.
     97 *
     98 * @param fun DDF function of the device in question.
     99 * @param pipe_desc Pipe description.
     100 * @return Error code.
     101 */
    102102static errno_t unregister_endpoint(ddf_fun_t *fun, const usb_pipe_desc_t *pipe_desc)
    103103{
     
    182182        }
    183183
    184         /* If the driver didn't name the dev when enumerating,
     184        /*
     185         * If the driver didn't name the dev when enumerating,
    185186         * do it in some generic way.
    186187         */
     
    281282        assert(dev);
    282283
    283         const usb_target_t target = {{
    284                 .address = dev->address,
    285                 .endpoint = ifreq->endpoint,
    286                 .stream = ifreq->stream,
    287         }};
     284        const usb_target_t target = {
     285                {
     286                        .address = dev->address,
     287                        .endpoint = ifreq->endpoint,
     288                        .stream = ifreq->stream,
     289                }
     290        };
    288291
    289292        if (!usb_target_is_valid(&target))
Note: See TracChangeset for help on using the changeset viewer.