target_request: fix warning, do not set local variable to value it already has
authorØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 26 Feb 2012 18:33:38 +0000 (19:33 +0100)
committerØyvind Harboe <oyvindharboe@gmail.com>
Sun, 11 Mar 2012 21:12:10 +0000 (21:12 +0000)
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>
src/target/target_request.c

index c1f987eb7bcb2d4279b9507133a97bd4d9d392bd..0b9233ad245abf4788ec517dfcb7232d030718d1 100644 (file)
@@ -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 */
        /* 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);
                while ((*p)->next)
                        p = &((*p)->next);
                p = &((*p)->next);