Skip to content
Snippets Groups Projects
  1. Feb 24, 2021
    • Tom Rini's avatar
      cmd: pwm: Rework argc sanity checking · da7991b3
      Tom Rini authored
      
      Currently, we check argc in a number of places to make sure that we have
      all of the required arguments for each of the pwm sub-commands.
      However, there's at least one place where we've got dead code as we'll
      never have argc == 0, due to checking that argc was at least 4 earlier
      and having only subtracted 3.  Rework things so that when we have
      determined our subcommand make sure we have the right number of
      arguments for it, or error out.  This means we can stop checking against
      argc again later.
      
      Reported-by: Coverity (CID: 316601)
      Cc: Pragnesh Patel <pragnesh.patel@sifive.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      da7991b3
  2. Feb 23, 2021
  3. Feb 22, 2021
  4. Feb 21, 2021
Loading