Coverity analysis defect 72703: Redundant test

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Test always evaluates the same

      Defect 72703 (STATIC_C)
      Checker DEADCODE (subcategory redundant_test)
      File: /src/third_party/wiredtiger/src/conn/conn_api.c
      Function __wt_encryptor_config
      /src/third_party/wiredtiger/src/conn/conn_api.c, line: 465
      At condition "locked", the value of "locked" must be equal to 1.

          	if (locked)
      

      /src/third_party/wiredtiger/src/conn/conn_api.c, line: 417
      Assigning: "locked" = "1".

          	locked = 1;
      

      /src/third_party/wiredtiger/src/conn/conn_api.c, line: 465
      The condition "locked" must be true.

          	if (locked)
      

              Assignee:
              Keith Bostic (Inactive)
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: