crypto: omap-des - fix BUG_ON condition
authorAsaf Vertz <asaf.vertz@tandemg.com>
Mon, 5 Jan 2015 08:23:10 +0000 (10:23 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 Jan 2015 10:46:17 +0000 (21:46 +1100)
dd->total is unsigned so it won't do any good to check for negative
value after subtracting instead of that we should check if the
subtracted value is bigger than him

This was partially found by using a static code analysis program
called cppcheck.

Signed-off-by: Asaf Vertz <asaf.vertz@tandemg.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found