• Tom Rix's avatar
    ipmi: initialize len variable · 8d10ea15
    Tom Rix authored
    Clang static analysis reports this issue
    ipmi_ssif.c:1731:3: warning: 4th function call
      argument is an uninitialized value
      dev_info(&ssif_info->client->dev,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    The 4th parameter is the 'len' variable.
    len is only set by a successful call to do_cmd().
    Initialize to len 0.
    Signed-off-by: default avatarTom Rix <trix@redhat.com>
    Message-Id: <20220320135954.2258545-1-trix@redhat.com>
    Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
    8d10ea15
ipmi_ssif.c 54.2 KB