]> git.gag.com Git - fw/openocd/commit
jtag/core: fix unused assignment
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 22 Sep 2021 16:39:57 +0000 (18:39 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Mon, 25 Oct 2021 16:08:41 +0000 (16:08 +0000)
commitb3f052ba9d9582fe203ff8baa73fef66c02196ac
treec787e653611aaea3bd086922c35329bac062875f
parent9188115296917ce74ad5b0f83451414735225ce5
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 <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6587
Tested-by: jenkins
src/jtag/core.c