summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2017-07-14 10:24:00 +0200
committerMartin Roth <martinroth@google.com>2017-07-15 22:11:17 +0000
commitd5960c4674acac41718b1288650f3a647d737972 (patch)
tree1b83722c88a16760a5e84e4ff2e5ad8a69065a37
parent330c46b963f1d688131d136bf74e0e38f2fe922e (diff)
downloadcoreboot-d5960c4674acac41718b1288650f3a647d737972.tar.xz
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 <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/20572 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/drivers/siemens/nc_fpga/nc_fpga.c2
1 files changed, 1 insertions, 1 deletions
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)