diff options
author | John Hsu <KCHSU0@nuvoton.com> | 2016-07-15 10:06:17 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-07-15 11:46:43 +0100 |
commit | 308e3e0bfa9ec9d1dc8c415e8a68ad4efd0fddfd (patch) | |
tree | a129f2d0043a57659e14a9fcff7f1d6ad56272b8 | |
parent | bff03e81502cb9ac99daeeb47b4d0e779cc48fde (diff) |
ASoC: nau8825: drop redundant idiom when converting integer to boolean
Thanks Mark and Anatol for the discussion. According to the result,
the standard C will translate any non-zero value into true, or
false otherwise.
QUOTE:
"6.3.1.2 Boolean type
When any scalar value is converted to _Bool, the result is 0 if the
value compares equal to 0; otherwise, the result is 1
"
Thus, the "!!" idiom is removed.
Signed-off-by: John Hsu <KCHSU0@nuvoton.com>
Signed-off-by: Mark Brown <broonie@kernel.org>