summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2020-05-06 12:50:51 -0600
committerFurquan Shaikh <furquan@google.com>2020-05-07 23:34:21 +0000
commitd8bd3ff1979ee16b6f7bdaf9f515753ec1e59da6 (patch)
tree976b11c505f2b66e98d889755056a778acc2b473
parente8936747eb9b2e9558a297841e6a4612f7988827 (diff)
downloadcoreboot-d8bd3ff1979ee16b6f7bdaf9f515753ec1e59da6.tar.xz
memrange: constify memranges_is_empty()
memranges_is_empty() doesn't need to manipulate the object. Mark the parameter as const. Change-Id: I89f4ec404c144eac8d2900945a1ccaf5cc4f88bb Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41102 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/include/memrange.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/memrange.h b/src/include/memrange.h
index 2579f20c18..deb8c1e5de 100644
--- a/src/include/memrange.h
+++ b/src/include/memrange.h
@@ -69,7 +69,7 @@ static inline void range_entry_update_tag(struct range_entry *r,
r->tag = new_tag;
}
-static inline bool memranges_is_empty(struct memranges *ranges)
+static inline bool memranges_is_empty(const struct memranges *ranges)
{
return ranges->entries == NULL;
}