From 35850ae88e0be8d05ab672d5badcd89ab8006389 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sun, 2 Feb 2014 22:37:28 -0600 Subject: cbfstool: Eliminate global variable "arch" Now that unused functions have been removed, the global "arch" is only used in very few places. We can pack "arch" in the "param" structure and pass it down to where it is actually used. Change-Id: I255d1e2bc6b5ead91b6b4e94a0202523c4ab53dc Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/5105 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich Reviewed-by: Paul Menzel --- util/cbfstool/common.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'util/cbfstool/common.c') diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index 715c5df58e..98d9517bf4 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -103,9 +103,6 @@ void buffer_delete(struct buffer *buffer) { buffer->size = 0; } -/* FIXME: This global is more difficult to just remove */ -uint32_t arch = CBFS_ARCHITECTURE_UNKNOWN; - static struct { uint32_t arch; const char *name; -- cgit v1.2.3