projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9d9a2a
)
Remove redundant condition in overflow test.
author
Milan Broz
<gmazyland@gmail.com>
Mon, 18 Jun 2012 15:12:41 +0000
(17:12 +0200)
committer
Milan Broz
<gmazyland@gmail.com>
Mon, 18 Jun 2012 15:12:41 +0000
(17:12 +0200)
lib/verity/verity_hash.c
patch
|
blob
|
history
diff --git
a/lib/verity/verity_hash.c
b/lib/verity/verity_hash.c
index
bfc82e0
..
74ea132
100644
(file)
--- a/
lib/verity/verity_hash.c
+++ b/
lib/verity/verity_hash.c
@@
-91,7
+91,7
@@
out:
static int mult_overflow(off_t *u, off_t b, size_t size)
{
*u = (uint64_t)b * size;
- if ((off_t)(*u / size) != b || (off_t)*u < 0
|| (off_t)*u != *u
)
+ if ((off_t)(*u / size) != b || (off_t)*u < 0)
return 1;
return 0;
}