From: Antonio Borneo Date: Wed, 22 Sep 2021 16:39:57 +0000 (+0200) Subject: jtag/core: fix unused assignment X-Git-Tag: v0.12.0-rc1~482 X-Git-Url: https://review.openocd.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=b3f052ba9d9582fe203ff8baa73fef66c02196ac;hp=b3f052ba9d9582fe203ff8baa73fef66c02196ac;p=openocd.git jtag/core: fix unused assignment Clang scan-build complains about a variable assigned but never used. Although the value stored to 'val' is used in the enclosing expression, the value is never actually read from 'val' Remove the dead assignment. While there, reduce the scope of the variable by declaring the variable at the point of first use. Change-Id: Ibe2b55a7d70597833cfa7f3d843e7c3d2407f2df Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/6587 Tested-by: jenkins ---