Commit d8bd3ff1 authored by Aaron Durbin's avatar Aaron Durbin Committed by Furquan Shaikh
Browse files

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: default avatarAaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41102

Reviewed-by: default avatarFurquan Shaikh <furquan@google.com>
Reviewed-by: default avatarHAOUAS Elyes <ehaouas@noos.fr>
Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
parent e8936747
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment