stlink: remove unused assignment

Fix a warning identified by clang 7.0.1:
stlink_usb.c:1092:3: warning: Value stored to 'p' is never read
	p += sprintf(p, "S%d", swim);
	^    ~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: Ic9da57e19ceecb0e3d65d3ea3412a05e1c2c779a
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4945
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Antonio Borneo 2019-02-24 18:19:44 +01:00 committed by Tomas Vanek
parent 334c5096eb
commit 79a8594130
1 changed files with 1 additions and 1 deletions

View File

@ -1002,7 +1002,7 @@ static int stlink_usb_version(void *handle)
if (bridge)
p += sprintf(p, "B%d", bridge);
if (swim || !msd)
p += sprintf(p, "S%d", swim);
sprintf(p, "S%d", swim);
LOG_INFO("STLINK %s (API v%d) VID:PID %04X:%04X",
v_str,