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:
parent
334c5096eb
commit
79a8594130
|
@ -1002,7 +1002,7 @@ static int stlink_usb_version(void *handle)
|
||||||
if (bridge)
|
if (bridge)
|
||||||
p += sprintf(p, "B%d", bridge);
|
p += sprintf(p, "B%d", bridge);
|
||||||
if (swim || !msd)
|
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",
|
LOG_INFO("STLINK %s (API v%d) VID:PID %04X:%04X",
|
||||||
v_str,
|
v_str,
|
||||||
|
|
Loading…
Reference in New Issue