aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/of.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 28797e1a9982..0cf857012f11 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -234,8 +234,8 @@ extern struct device_node *of_find_all_nodes(struct device_node *prev);
234static inline u64 of_read_number(const __be32 *cell, int size) 234static inline u64 of_read_number(const __be32 *cell, int size)
235{ 235{
236 u64 r = 0; 236 u64 r = 0;
237 while (size--) 237 for (; size--; cell++)
238 r = (r << 32) | be32_to_cpu(*(cell++)); 238 r = (r << 32) | be32_to_cpu(*cell);
239 return r; 239 return r;
240} 240}
241 241