From 02897021b34f62bfa03b5e75917bf0a8a7efcc8a Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Mon, 13 Feb 2023 13:22:37 +1100 Subject: cli_classic.c: Drop spurious cast This cast should not be required. Change-Id: Ia3a658dd6f4986eb6da84a11bce66f53e1571469 Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/72966 Tested-by: build bot (Jenkins) Reviewed-by: Sam McNally --- cli_classic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli_classic.c b/cli_classic.c index c72836fc..da689196 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -662,8 +662,7 @@ int main(int argc, char *argv[]) * chip when a flash device gets opened with fd 1 or 2. */ if (check_file(stdout) && check_file(stderr)) { - flashrom_set_log_callback( - (flashrom_log_callback *)&flashrom_print_cb); + flashrom_set_log_callback(&flashrom_print_cb); } print_version(); -- cgit v1.2.3