diff --git a/include/linux/of.h b/include/linux/of.h index 209e226e91b709c288fe2e4797aab7b9a104c529..e5788ba447b6e7b3e90fbcf568cdb15c72cfaed4 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -236,8 +236,8 @@ extern struct device_node *of_find_all_nodes(struct device_node *prev); static inline u64 of_read_number(const __be32 *cell, int size) { u64 r = 0; - while (size--) - r = (r << 32) | be32_to_cpu(*(cell++)); + for (; size--; cell++) + r = (r << 32) | be32_to_cpu(*cell); return r; }