Changeset a38d4a37 in rtems


Ignore:
Timestamp:
Apr 16, 2014, 12:22:42 PM (5 years ago)
Author:
Ralf Kirchner <ralf.kirchner@…>
Branches:
4.11, master
Children:
924b47a
Parents:
1613a01b
git-author:
Ralf Kirchner <ralf.kirchner@…> (04/16/14 12:22:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/17/14 11:24:08)
Message:

libchip: Correct error handling in dwmac driver

By fault an rtems_status_code has been expected instead of an errno error number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/dwmac.c

    r1613a01b ra38d4a37  
    315315    sc         = rtems_event_transient_receive( RTEMS_WAIT, RTEMS_NO_TIMEOUT );
    316316    eno        = rtems_status_code_to_errno( sc );
    317   }
    318 
    319   if ( eno == 0 ) {
    320317    rtems_bsdnet_semaphore_obtain_recursive( nest_count );
    321318    self->task_id_control = 0;
     
    18361833    if ( eno == 0 ) {
    18371834      /* Start the ball rolling ... */
    1838       sc = dwmac_control_request(
     1835      eno = dwmac_control_request(
    18391836        self, self->task_id_tx, DWMAC_COMMON_EVENT_TASK_INIT );
    1840       eno = rtems_status_code_to_errno( sc );
    18411837    }
    18421838
    18431839    if ( eno == 0 ) {
    1844       sc = dwmac_control_request(
     1840      eno = dwmac_control_request(
    18451841        self, self->task_id_rx, DWMAC_COMMON_EVENT_TASK_INIT );
    1846       eno = rtems_status_code_to_errno( sc );
    18471842    }
    18481843
     
    18791874  } else if ( !up && self->state == DWMAC_COMMON_STATE_UP ) {
    18801875    if ( eno == 0 ) {
    1881       sc = dwmac_control_request(
     1876      eno = dwmac_control_request(
    18821877        self, self->task_id_tx, DWMAC_COMMON_EVENT_TASK_STOP );
    1883       eno = rtems_status_code_to_errno( sc );
    18841878    }
    18851879
    18861880    if ( eno == 0 ) {
    1887       sc = dwmac_control_request(
     1881      eno = dwmac_control_request(
    18881882        self, self->task_id_rx, DWMAC_COMMON_EVENT_TASK_STOP );
    1889       eno = rtems_status_code_to_errno( sc );
    18901883    }
    18911884
Note: See TracChangeset for help on using the changeset viewer.