Changeset acdb5bac in mainline for uspace/drv/bus


Ignore:
Timestamp:
2013-05-20T18:42:25Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e8ed225
Parents:
44ecf89
Message:

Replace usage of bzero() with C standard memset().

Location:
uspace/drv/bus/usb
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/hc.c

    r44ecf89 racdb5bac  
    602602        assert(instance);
    603603
    604         bzero(&instance->rh, sizeof(instance->rh));
     604        memset(&instance->rh, 0, sizeof(instance->rh));
    605605        /* Init queues */
    606606        const int ret = hc_init_transfer_lists(instance);
  • uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c

    r44ecf89 racdb5bac  
    5353{
    5454        assert(instance);
    55         bzero(instance, sizeof(ed_t));
     55        memset(instance, 0, sizeof(ed_t));
    5656
    5757        if (ep == NULL) {
  • uspace/drv/bus/usb/ohci/hw_struct/hcca.h

    r44ecf89 racdb5bac  
    6868        hcca_t *hcca = memalign(256, sizeof(hcca_t));
    6969        if (hcca)
    70                 bzero(hcca, sizeof(hcca_t));
     70                memset(hcca, 0, sizeof(hcca_t));
    7171        return hcca;
    7272}
  • uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c

    r44ecf89 racdb5bac  
    5858{
    5959        assert(instance);
    60         bzero(instance, sizeof(td_t));
     60        memset(instance, 0, sizeof(td_t));
    6161        /* Set PID and Error code */
    6262        OHCI_MEM32_WR(instance->status,
  • uspace/drv/bus/usb/uhci/uhci_batch.c

    r44ecf89 racdb5bac  
    112112        CHECK_NULL_DISPOSE_RETURN(uhci_batch->device_buffer,
    113113            "Failed to allocate UHCI buffer.\n");
    114         bzero(uhci_batch->device_buffer, total_size);
     114        memset(uhci_batch->device_buffer, 0, total_size);
    115115
    116116        uhci_batch->tds = uhci_batch->device_buffer;
  • uspace/drv/bus/usb/usbmast/scsi_ms.c

    r44ecf89 racdb5bac  
    167167         */
    168168
    169         bzero(inq_res, sizeof(*inq_res));
     169        memset(inq_res, 0, sizeof(*inq_res));
    170170
    171171        inq_res->device_type = BIT_RANGE_EXTRACT(uint8_t,
Note: See TracChangeset for help on using the changeset viewer.