Changeset 1b20da0 in mainline for uspace/lib/nic/src


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

Location:
uspace/lib/nic/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_addr_db.c

    rdf6ded8 r1b20da0  
    5656
    5757
    58 /* 
    59  * Hash table helper functions 
     58/*
     59 * Hash table helper functions
    6060 */
    6161typedef struct {
     
    181181       
    182182        nic_addr_entry_t *entry = malloc(sizeof(nic_addr_entry_t) + db->addr_len - 1);
    183         if (entry == NULL) 
     183        if (entry == NULL)
    184184                return ENOMEM;
    185185
     
    246246 * Helper function for nic_addr_db_foreach
    247247 */
    248 static bool nic_addr_db_fe_helper(ht_link_t *item, void *arg) 
     248static bool nic_addr_db_fe_helper(ht_link_t *item, void *arg)
    249249{
    250250        nic_addr_db_fe_arg_t *hs = (nic_addr_db_fe_arg_t *) arg;
  • uspace/lib/nic/src/nic_driver.c

    rdf6ded8 r1b20da0  
    375375}
    376376
    377 /** Get the polling mode information from the device 
     377/** Get the polling mode information from the device
    378378 *
    379379 *      The main lock should be locked, otherwise the inconsistency between
     
    898898}
    899899
    900 /** 
     900/**
    901901 * @param dev DDF device associated with NIC
    902902 * @return The associated NIC structure
     
    907907}
    908908
    909 /** 
     909/**
    910910 * @param dev DDF function associated with NIC
    911911 * @return The associated NIC structure
     
    938938 * @param cause         The concrete error cause.
    939939 */
    940 void nic_report_send_error(nic_t *nic_data, nic_send_error_cause_t cause, 
     940void nic_report_send_error(nic_t *nic_data, nic_send_error_cause_t cause,
    941941    unsigned count)
    942942{
     
    10211021}
    10221022
    1023 /** Just wrapper for checking nonzero time interval 
     1023/** Just wrapper for checking nonzero time interval
    10241024 *
    10251025 *  @oaram t The interval to check
     
    11051105        /* Create the fibril if it is not crated */
    11061106        if (nic_data->sw_poll_info.fibril == 0) {
    1107                 nic_data->sw_poll_info.fibril = fibril_create(period_fibril_fun, 
     1107                nic_data->sw_poll_info.fibril = fibril_create(period_fibril_fun,
    11081108                    nic_data);
    11091109                nic_data->sw_poll_info.running = 0;
  • uspace/lib/nic/src/nic_impl.c

    rdf6ded8 r1b20da0  
    756756        errno_t rc = nic_data->on_poll_mode_change(nic_data, mode, period);
    757757        assert(rc == EOK || rc == ENOTSUP || rc == EINVAL);
    758         if (rc == ENOTSUP && (nic_data->on_poll_request != NULL) && 
     758        if (rc == ENOTSUP && (nic_data->on_poll_request != NULL) &&
    759759            (mode == NIC_POLL_PERIODIC || mode == NIC_POLL_SOFTWARE_PERIODIC) ) {
    760760
    761761                rc = nic_data->on_poll_mode_change(nic_data, NIC_POLL_ON_DEMAND, NULL);
    762762                assert(rc == EOK || rc == ENOTSUP);
    763                 if (rc == EOK) 
     763                if (rc == EOK)
    764764                        nic_sw_period_start(nic_data);
    765765        }
  • uspace/lib/nic/src/nic_wol_virtues.c

    rdf6ded8 r1b20da0  
    187187nic_wol_virtue_t *nic_wol_virtues_remove(nic_wol_virtues_t *wvs, nic_wv_id_t id)
    188188{
    189         nic_wol_virtue_t *virtue = 
     189        nic_wol_virtue_t *virtue =
    190190                (nic_wol_virtue_t *) hash_table_find(&wvs->table, &id);
    191191        if (virtue == NULL) {
Note: See TracChangeset for help on using the changeset viewer.