aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv7a.c
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-09-28 17:28:25 +0200
committerSpencer Oliver <spen@spen-soft.co.uk>2013-10-31 20:42:47 +0000
commit13f6c889ab9b6e5b1c4f48fca9807fdc1fb83f42 (patch)
treefd5412ade9345f19316dcbee5ea39f961f34509a /src/target/armv7a.c
parent517ba0690dcc9e859a05df2113ce32401a5ab254 (diff)
downloadriscv-openocd-13f6c889ab9b6e5b1c4f48fca9807fdc1fb83f42.zip
riscv-openocd-13f6c889ab9b6e5b1c4f48fca9807fdc1fb83f42.tar.gz
riscv-openocd-13f6c889ab9b6e5b1c4f48fca9807fdc1fb83f42.tar.bz2
Remove unnecessary (void *)
When pointer casts are needed, cast directly to the correct type, instead of going via void*. Don't explicitly cast to void* if it would have been done implicitly. Change-Id: I4093209200051c5eb62847d00a4b9c8567480068 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1669 Tested-by: jenkins Reviewed-by: Mathias Küster <kesmtp@freenet.de> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/armv7a.c')
-rw-r--r--src/target/armv7a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/armv7a.c b/src/target/armv7a.c
index 6a41e0d..bfe4ef4 100644
--- a/src/target/armv7a.c
+++ b/src/target/armv7a.c
@@ -468,7 +468,7 @@ static int armv7a_l2x_cache_init(struct target *target, uint32_t base, uint32_t
l2x_cache->base,l2x_cache->way);*/
if (armv7a->armv7a_mmu.armv7a_cache.l2_cache)
LOG_INFO("cache l2 already initialized\n");
- armv7a->armv7a_mmu.armv7a_cache.l2_cache = (void *) l2x_cache;
+ armv7a->armv7a_mmu.armv7a_cache.l2_cache = l2x_cache;
/* initialize l1 / l2x cache function */
armv7a->armv7a_mmu.armv7a_cache.flush_all_data_cache
= armv7a_l2x_flush_all_data;
@@ -482,7 +482,7 @@ static int armv7a_l2x_cache_init(struct target *target, uint32_t base, uint32_t
armv7a = target_to_armv7a(curr);
if (armv7a->armv7a_mmu.armv7a_cache.l2_cache)
LOG_ERROR("smp target : cache l2 already initialized\n");
- armv7a->armv7a_mmu.armv7a_cache.l2_cache = (void *) l2x_cache;
+ armv7a->armv7a_mmu.armv7a_cache.l2_cache = l2x_cache;
armv7a->armv7a_mmu.armv7a_cache.flush_all_data_cache =
armv7a_l2x_flush_all_data;
armv7a->armv7a_mmu.armv7a_cache.display_cache_info =