mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/clarity: name the gbe file half size
we need only declare it in the centralised gbe_file_offset function, which determines whether a write to the gbe file falls specifically within the 4KB range that is the gbe part. it is always half of the gbe file size, and then the first 4KB of each half stores the gbe part. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -875,8 +875,10 @@ write_gbe_file_part(size_t p)
|
||||
static off_t
|
||||
gbe_file_offset(size_t p, const char *f_op)
|
||||
{
|
||||
off_t gbe_file_half_size = gbe_file_size >> 1;
|
||||
|
||||
return gbe_x_offset(p, f_op, "file",
|
||||
gbe_file_size >> 1, gbe_file_size);
|
||||
gbe_file_half_size, gbe_file_size);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user