Avoid double increment of dst in adiv5 write bytes function.

This commit is contained in:
Allen Ibara 2013-01-31 13:39:41 -08:00
parent ef566de383
commit 4d6ae0a1b2
1 changed files with 0 additions and 1 deletions

View File

@ -295,7 +295,6 @@ ap_mem_write_bytes(struct target_s *target, uint32_t dest, const uint8_t *src, i
adiv5_dp_low_access(ap->dp, ADIV5_LOW_AP, ADIV5_LOW_WRITE, adiv5_dp_low_access(ap->dp, ADIV5_LOW_AP, ADIV5_LOW_WRITE,
ADIV5_AP_DRW, tmp); ADIV5_AP_DRW, tmp);
dest ++;
/* Check for 10 bit address overflow */ /* Check for 10 bit address overflow */
if ((dest ^ odest) & 0xfffffc00) { if ((dest ^ odest) & 0xfffffc00) {
odest = dest; odest = dest;