gprofng: fix -Wduplicated-cond warning
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 21 Sep 2022 20:01:06 +0000 (13:01 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 22 Sep 2022 02:00:00 +0000 (19:00 -0700)
gprofng/ChangeLog
2022-09-21  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

* src/collctrl.cc: Fix -Wduplicated-cond warning.

gprofng/src/collctrl.cc

index 48c65ff6f24a3feb86bc0ad2e2954d8d0a206577..04e3e57bca5303f837858a65a9e969d98987b94b 100644 (file)
@@ -760,7 +760,7 @@ Coll_Ctrl::get_collect_args ()
       *p++ = strdup ("-s");
       if (synctrace_thresh < 0)
        *p++ = strdup ("calibrate");
-      else if (synctrace_thresh < 0)
+      else if (synctrace_thresh == 0)
        *p++ = strdup ("all");
       else
        *p++ = dbe_sprintf ("%d", synctrace_thresh);