diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-02-24 18:19:44 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2019-03-06 15:36:14 +0000 |
commit | 79a859413038c85f084ec1e91c90d2a85344ea2f (patch) | |
tree | 07340ed18e20d3d0e35f130e77adacb27fb903d4 /src/jtag | |
parent | 334c5096eb4f6cb82de3a48fe678f6dff4c7e9d3 (diff) | |
download | riscv-openocd-79a859413038c85f084ec1e91c90d2a85344ea2f.zip riscv-openocd-79a859413038c85f084ec1e91c90d2a85344ea2f.tar.gz riscv-openocd-79a859413038c85f084ec1e91c90d2a85344ea2f.tar.bz2 |
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>
Diffstat (limited to 'src/jtag')
-rw-r--r-- | src/jtag/drivers/stlink_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c index 1a3cc61..a9ee44d 100644 --- a/src/jtag/drivers/stlink_usb.c +++ b/src/jtag/drivers/stlink_usb.c @@ -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, |