]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
json_parse_ex: Remove redundant assignment to unused 'b'.
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 1 May 2021 18:22:30 +0000 (19:22 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 5 May 2021 22:12:21 +0000 (23:12 +0100)
The static analyser complains 'Value stored to 'b' is never read'.

There isn't even much of a defence that it's just being defensive; we
ought to *know* it isn't used from that point on.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
json/json.c

index 5c961f982baed8bb5de0ba0adc159f8a6445b667..1e878509109356735959ce09b2873c78e387198a 100644 (file)
@@ -676,7 +676,6 @@ json_value * json_parse_ex (json_settings * settings,
                               {
                                  if ( (++ state.ptr) == end)
                                  {
-                                    b = 0;
                                     break;
                                  }