aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/at91sam3.c
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-09-28 21:43:37 +0200
committerSpencer Oliver <spen@spen-soft.co.uk>2013-10-31 20:43:27 +0000
commitba2fbe22470915359e1905aaad4c613eacbdf6dc (patch)
tree701c642d7bd3badb2b97b971cce811c4140e778b /src/flash/nor/at91sam3.c
parent704082443d03cdeba9c89a8f70d1f1017330d903 (diff)
downloadriscv-openocd-ba2fbe22470915359e1905aaad4c613eacbdf6dc.zip
riscv-openocd-ba2fbe22470915359e1905aaad4c613eacbdf6dc.tar.gz
riscv-openocd-ba2fbe22470915359e1905aaad4c613eacbdf6dc.tar.bz2
Remove unnecessary casts
Change-Id: Ia97283707282ccccdc707c969f59337313b4e291 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1767 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/flash/nor/at91sam3.c')
-rw-r--r--src/flash/nor/at91sam3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c
index fdae964..a05ab16 100644
--- a/src/flash/nor/at91sam3.c
+++ b/src/flash/nor/at91sam3.c
@@ -2731,7 +2731,7 @@ static const struct sam3_reg_list sam3_all_regs[] = {
static struct sam3_bank_private *get_sam3_bank_private(struct flash_bank *bank)
{
- return (struct sam3_bank_private *)(bank->driver_priv);
+ return bank->driver_priv;
}
/**