Skip to content

Commit

Permalink
json_parse_ex: Remove redundant assignment to unused 'b'.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dwmw2 committed May 5, 2021
1 parent 515fbfb commit 13cf810
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion json/json.c
Expand Up @@ -676,7 +676,6 @@ json_value * json_parse_ex (json_settings * settings,
{
if ( (++ state.ptr) == end)
{
b = 0;
break;
}

Expand Down

0 comments on commit 13cf810

Please sign in to comment.