]> granicus.if.org Git - check/commitdiff
Remove useless if clause.
authorMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Wed, 28 Aug 2019 12:07:39 +0000 (14:07 +0200)
committerMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Wed, 28 Aug 2019 12:07:39 +0000 (14:07 +0200)
warning: comparison of constant -1 with expression of type
'clockid_t' is always false [-Wtautological-constant-out-of-range-compare]

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
src/check.c

index 9f9b251c802b6c875b9cc8c099c58a47a69ba180..766884be6bea46756dec313f25ac427a01e10299 100644 (file)
@@ -601,8 +601,6 @@ clockid_t check_get_clockid()
 {
     static clockid_t clockid = -1;
 
-    if(clockid == -1)
-    {
 /*
  * Only check if we have librt available. Otherwise, the clockid
  * will be ignored anyway, as the clock_gettime() and