aboutsummaryrefslogtreecommitdiff
path: root/src/target/target_request.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2012-02-26 19:33:38 +0100
committerØyvind Harboe <oyvindharboe@gmail.com>2012-03-11 21:12:10 +0000
commit0999bdb830492fe3263c5c3c461bce03f87d3b8e (patch)
tree675fc35707acd33e32731639ff91895235590ef0 /src/target/target_request.c
parent27b3d9c434d359757ba5bcb1517517842bf68f83 (diff)
downloadriscv-openocd-0999bdb830492fe3263c5c3c461bce03f87d3b8e.zip
riscv-openocd-0999bdb830492fe3263c5c3c461bce03f87d3b8e.tar.gz
riscv-openocd-0999bdb830492fe3263c5c3c461bce03f87d3b8e.tar.bz2
target_request: fix warning, do not set local variable to value it already has
Change-Id: If29b0efdc326ee1ce4c07ec9d8777744d674f367 Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com> Reviewed-on: http://openocd.zylin.com/490 Tested-by: jenkins Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Diffstat (limited to 'src/target/target_request.c')
-rw-r--r--src/target/target_request.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/target/target_request.c b/src/target/target_request.c
index c1f987e..0b9233a 100644
--- a/src/target/target_request.c
+++ b/src/target/target_request.c
@@ -164,7 +164,6 @@ static int add_debug_msg_receiver(struct command_context *cmd_ctx, struct target
/* see if there's already a list */
if (*p) {
/* find end of linked list */
- p = &target->dbgmsg;
while ((*p)->next)
p = &((*p)->next);
p = &((*p)->next);