summaryrefslogtreecommitdiffstats
path: root/drivers/char/ppdev.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-01-14 15:15:57 +0000
committerDavid Howells <dhowells@redhat.com>2015-01-14 15:15:57 +0000
commit7fe21291bad93458100fbbf0078d40cdb529a646 (patch)
treebbc85cda5a693a759053a999c5a6f22e57c0c4ca /drivers/char/ppdev.c
parentb2d1965dcea148100ffc4e7199470bf5fad13871 (diff)
downloadlinux-stable-7fe21291bad93458100fbbf0078d40cdb529a646.tar.gz
linux-stable-7fe21291bad93458100fbbf0078d40cdb529a646.tar.bz2
linux-stable-7fe21291bad93458100fbbf0078d40cdb529a646.zip
MPILIB: Deobfuscate mpi_cmp
The condition preceding 'return 1;' makes my head hurt. At this point, we know that u and v have the same sign; if they are negative, they compare opposite to how their absolute values compare (which mpihelp_cmp found for us), otherwise cmp itself is the answer. Negating cmp is ok since mpihelp_cmp returns {-1,0,1}; -INT_MIN==INT_MIN won't bite us. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Diffstat (limited to 'drivers/char/ppdev.c')
0 files changed, 0 insertions, 0 deletions