Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-9684

Coverity analysis defect 124205: Redundant test

    XMLWordPrintable

Details

    • 1
    • StorEng - Defined Pipeline

    Description

      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
      /ext/storage_sources/dir_store/dir_store.c:640: DEADCODE 124205 At condition "ret == 2", the value of "ret" must be equal to 2.
      /ext/storage_sources/dir_store/dir_store.c:640: DEADCODE 124205 Condition "ret != 2", taking false branch. Now the value of "ret" is equal to 2.
      /ext/storage_sources/dir_store/dir_store.c:640: DEADCODE 124205 The condition "ret == 2" must be true.

      Attachments

        Issue Links

          Activity

            People

              luke.chen@mongodb.com Luke Chen
              xgen-internal-coverity Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: