From 1ac194e14a90563635b0a0a6a82ada87dcb8dbde Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Mon, 23 May 2016 08:44:46 -0700 Subject: cbfstool: Move cbfs_file_get_header to fit.c Since fit.c is the only caller of this function move it out of common.c and into fit.c. Change-Id: I64cc31a6d89ee425c5b07745ea5ca9437e2f3fcf Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/14949 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- util/cbfstool/common.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'util/cbfstool/common.c') diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index 4534d8526a68..bbb6141fe9a7 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -122,15 +122,6 @@ void buffer_delete(struct buffer *buffer) buffer->size = 0; } -void cbfs_file_get_header(struct buffer *buf, struct cbfs_file *file) -{ - bgets(buf, &file->magic, sizeof(file->magic)); - file->len = xdr_be.get32(buf); - file->type = xdr_be.get32(buf); - file->attributes_offset = xdr_be.get32(buf); - file->offset = xdr_be.get32(buf); -} - static struct { uint32_t arch; const char *name; -- cgit v1.2.3