projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
624ab2a
)
of: Remove redundant size check
author
Frank Rowand
<frank.rowand@am.sony.com>
Sat, 29 Oct 2016 06:26:28 +0000
(23:26 -0700)
committer
Rob Herring
<robh@kernel.org>
Tue, 15 Nov 2016 15:17:16 +0000
(09:17 -0600)
Remove a redundant check of buffer size.
Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/resolver.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/of/resolver.c
b/drivers/of/resolver.c
index 708daca1d5229d7f2622c11442131596ebdeb990..76c09cb57eae3f9174b1ec1e9c9ccba5203cee90 100644
(file)
--- a/
drivers/of/resolver.c
+++ b/
drivers/of/resolver.c
@@
-216,7
+216,7
@@
static int adjust_local_phandle_references(struct device_node *local_fixups,
for (i = 0; i < count; i++) {
off = be32_to_cpu(((__be32 *)prop_fix->value)[i]);
- if (
off >= prop->length ||
(off + 4) > prop->length)
+ if ((off + 4) > prop->length)
return -EINVAL;
phandle = be32_to_cpu(*(__be32 *)(prop->value + off));