Coverity analysis defect 114371: Redundant test

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Execution Team 2021-01-25
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Redundant test

      By the time the program execution reaches the test of this condition there is only one possible outcome for the test. The code at the destination of this branch is not dead, either because this condition is always true or because there is at least one other branch that reaches it. Test always evaluates the same
      /src/mongo/db/storage/flow_control.cpp:443: DEADCODE 114371 At condition "currApplied == -1L", the value of "currApplied" must be equal to -1.
      /src/mongo/db/storage/flow_control.cpp:435: DEADCODE 114371 Assigning: "currApplied" = "-1L".
      /src/mongo/db/storage/flow_control.cpp:443: DEADCODE 114371 The condition "currApplied == -1L" must be true.

            Assignee:
            Dan Larkin-York
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: