From: Øyvind Harboe Date: Sun, 26 Feb 2012 18:33:38 +0000 (+0100) Subject: target_request: fix warning, do not set local variable to value it already has X-Git-Tag: v0.6.0-rc1~198 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0999bdb830492fe3263c5c3c461bce03f87d3b8e;p=openocd target_request: fix warning, do not set local variable to value it already has Change-Id: If29b0efdc326ee1ce4c07ec9d8777744d674f367 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/490 Tested-by: jenkins Reviewed-by: Øyvind Harboe --- diff --git a/src/target/target_request.c b/src/target/target_request.c index c1f987eb..0b9233ad 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);