forked from auracaster/openocd
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>
This commit is contained in:
committed by
Spencer Oliver
parent
517ba0690d
commit
13f6c889ab
@@ -323,7 +323,7 @@ static int do_semihosting(struct target *target)
|
||||
if (l < s)
|
||||
result = -1;
|
||||
else {
|
||||
retval = target_write_buffer(target, a, s, (void *)arg);
|
||||
retval = target_write_buffer(target, a, s, (uint8_t *)arg);
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
result = 0;
|
||||
|
||||
Reference in New Issue
Block a user