diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-04-17 14:06:31 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-04-17 15:22:13 +0200 |
commit | 18ae3d98d97ca35da106f66f547bce64b4be31ee (patch) | |
tree | e9dfae626b3e19b0d85c450c89f81ec57e1da4f0 /src/import/Makefile | |
parent | 08232a020bd2571088d3ee06dda07732c5e963d1 (diff) |
sd-device: simplify enumerator hacks
Boolean arithmetic is great, use it!
if (a && !b)
return 1;
if (!a && b)
return -1,
is equivalent to
if (a != b)
return a - b;
Furthermore:
r = false;
if (condition)
r = true;
is equivalent to:
r = condition;
Diffstat (limited to 'src/import/Makefile')
0 files changed, 0 insertions, 0 deletions