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

Coverity analysis defect 124090: Redundant test

    • 1
    • StorEng - Defined Pipeline

      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:765: DEADCODE 124090 At condition "ret == 0", the value of "ret" must be equal to 0.
      /ext/storage_sources/dir_store/dir_store.c:759: DEADCODE 124090 Condition "(ret = link(src_path, dest_path)) != 0", taking false branch. Now the value of "ret" is equal to 0.
      /ext/storage_sources/dir_store/dir_store.c:765: DEADCODE 124090 The condition "ret == 0" must be true.

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

              Created:
              Updated:
              Resolved: