Changeset d7a1863b in rtems


Ignore:
Timestamp:
May 28, 2014, 3:23:27 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a92c488
Parents:
3660154
git-author:
Sebastian Huber <sebastian.huber@…> (05/28/14 15:23:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/02/14 06:28:42)
Message:

rtems: Coding style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/schedulergetprocessorset.c

    r3660154 rd7a1863b  
    2929)
    3030{
    31   rtems_status_code sc;
     31  const Scheduler_Control *scheduler;
    3232
    33   if ( cpuset != NULL ) {
    34     const Scheduler_Control *scheduler;
    35 
    36     if ( _Scheduler_Get_by_id( scheduler_id, &scheduler ) ) {
    37       if ( _CPU_set_Is_large_enough( cpusetsize ) ) {
    38         _Scheduler_Get_processor_set( scheduler, cpusetsize, cpuset );
    39 
    40         sc = RTEMS_SUCCESSFUL;
    41       } else {
    42         sc = RTEMS_INVALID_NUMBER;
    43       }
    44     } else {
    45       sc = RTEMS_INVALID_ID;
    46     }
    47   } else {
    48     sc = RTEMS_INVALID_ADDRESS;
     33  if ( cpuset == NULL ) {
     34    return RTEMS_INVALID_ADDRESS;
    4935  }
    5036
    51   return sc;
     37  if ( !_Scheduler_Get_by_id( scheduler_id, &scheduler ) ) {
     38    return RTEMS_INVALID_ID;
     39  }
     40
     41  if ( !_CPU_set_Is_large_enough( cpusetsize ) ) {
     42    return RTEMS_INVALID_NUMBER;
     43  }
     44
     45  _Scheduler_Get_processor_set( scheduler, cpusetsize, cpuset );
     46
     47  return RTEMS_SUCCESSFUL;
    5248}
    5349
Note: See TracChangeset for help on using the changeset viewer.