commit | 0c2b2c79aed688daf5f4cc1745493b0e4172e57b | [log] [tgz] |
---|---|---|
author | John Koleszar <jkoleszar@google.com> | Wed Dec 21 16:11:31 2011 -0800 |
committer | John Koleszar <jkoleszar@google.com> | Thu Dec 22 10:09:46 2011 -0800 |
tree | 1684a597a928153134e34100552fb1621bf79bd1 | |
parent | f56918ba9c8c964a7532ddac925fc5af8d330355 [diff] |
Remove unnecessary ternary constructs The code had a number of constructs like (condition)?1:0, which is redundant with C's semantics. In the cases where a boolean operator was used in the condition, simply remove the ternary part. Otherwise adjust the surrounding expression to remove the condition (eg, for rounding up. See pickinter.c and rdopt.c) Change-Id: Icb2372defa3783cf31857d90b2630d06b2c7e1be