From: Vladimir Mezentsev Date: Wed, 21 Sep 2022 20:01:06 +0000 (-0700) Subject: gprofng: fix -Wduplicated-cond warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90eca7111355e4c6683c1ab10fd07107ea10f6d1;p=binutils-gdb.git gprofng: fix -Wduplicated-cond warning gprofng/ChangeLog 2022-09-21 Vladimir Mezentsev * src/collctrl.cc: Fix -Wduplicated-cond warning. --- diff --git a/gprofng/src/collctrl.cc b/gprofng/src/collctrl.cc index 48c65ff6f24..04e3e57bca5 100644 --- a/gprofng/src/collctrl.cc +++ b/gprofng/src/collctrl.cc @@ -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);