From d5960c4674acac41718b1288650f3a647d737972 Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Fri, 14 Jul 2017 10:24:00 +0200 Subject: [PATCH] siemens/nc_fpga: Fix wrong type cast As "var" is not a pointer but a variable there is no need to cast it to a pointer before using the value. Change-Id: I7f8e3ceadaa4301c50c5f5480cccab2be904aa9a Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/20572 Tested-by: build bot (Jenkins) Reviewed-by: Mario Scheithauer Reviewed-by: Paul Menzel --- src/drivers/siemens/nc_fpga/nc_fpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/siemens/nc_fpga/nc_fpga.c b/src/drivers/siemens/nc_fpga/nc_fpga.c index 15b3ad338d..ab44e2387b 100644 --- a/src/drivers/siemens/nc_fpga/nc_fpga.c +++ b/src/drivers/siemens/nc_fpga/nc_fpga.c @@ -28,7 +28,7 @@ { \ uint32_t var; \ if (hwilib_get_field(src, (uint8_t *)&var, sizeof(var))) \ - dst = *((typeof(dst) *)var); \ + dst = ((typeof(dst))var); \ } static void init_temp_mon (void *base_adr)