Skip to content
  • Ville Syrjälä's avatar
    tools/cnl_compute_wrpll: Fix abs(unsigned) · e29c30f5
    Ville Syrjälä authored
    
    
    ../tools/cnl_compute_wrpll.c: In function ‘cnl_ddi_calculate_wrpll2’:
    ../tools/cnl_compute_wrpll.c:216:21: warning: taking the absolute value of unsigned type ‘uint32_t’ {aka ‘unsigned int’} has no effect [-Wabsolute-value]
      216 |    dco_centrality = abs(dco - dco_mid);
          |                     ^~~
    ../tools/cnl_compute_wrpll.c: In function ‘test_multipliers’:
    ../tools/cnl_compute_wrpll.c:258:21: warning: taking the absolute value of unsigned type ‘unsigned int’ has no effect [-Wabsolute-value]
      258 |    dco_centrality = abs(dco - dco_mid);
          |                     ^~~
    
    Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    e29c30f5