Changeset 5413:c4775e53e3a0 in roaraudio for roard


Ignore:
Timestamp:
02/14/12 21:11:31 (8 years ago)
Author:
phi
Branch:
default
Message:

fixes cppcheck warnings (false-positives)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_pwmled.c

    r5381 r5413  
    9898// TODO: this function should be optimized. 
    9999ssize_t driver_pwmled_write (struct roar_vio_calls * vio,  void *buf, size_t count) { 
    100  struct driver_pwmled * self = vio->inst; 
     100 struct driver_pwmled * self; 
    101101 int value; 
    102102 
     
    106106 if ( count != 512 ) 
    107107  return -1; 
     108 
     109 self = vio->inst; 
    108110 
    109111 value = ((unsigned char*)buf)[self->channel] / 15; 
     
    123125 
    124126int driver_pwmled_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    125  struct driver_pwmled * self = vio->inst; 
     127 struct driver_pwmled * self; 
    126128 
    127129 if ( vio == NULL ) 
    128130  return -1; 
     131 
     132 self = vio->inst; 
    129133 
    130134 switch (cmd) { 
Note: See TracChangeset for help on using the changeset viewer.