util/bucts: Fix compiler complaints shown with -Wextra
commit90a43067dda7a0c330b8a29a08ab3de6d1eae695
authorMartin Roth <martin@coreboot.org>
Sun, 14 Feb 2021 21:30:24 +0000 (14 14:30 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 25 Feb 2021 10:02:53 +0000 (25 10:02 +0000)
tree37f34b58d70e43609ba38d4623ab877f5d1caa9d
parenta84414a0fe782c9ace668ae5ef25cfcb6f3340aa
util/bucts: Fix compiler complaints shown with -Wextra

This fixes the following 2 complaints:

bucts.c: In function ‘main’:
error: unused parameter ‘envp’
error: ‘bucts_state’ may be used uninitialized in this function.

The bucts_state wasn't real, but the compiler couldn't tell, so use
one variable to check for modifications instead of two.

Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: Iff1aae3441ec366d272e88b6b6634980d61cb8ea
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50846
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
util/bucts/bucts.c