Procházet zdrojové kódy

totemsrp: Fix clang warning (tautological compare)

gsfrom is always >= 0

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Ruben Kerkhof před 10 roky
rodič
revize
37f092bbed
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      exec/totemsrp.c

+ 1 - 1
exec/totemsrp.c

@@ -707,7 +707,7 @@ do {												\
 
 static const char* gsfrom_to_msg(enum gather_state_from gsfrom)
 {
-	if (0 <= gsfrom && gsfrom <= TOTEMSRP_GSFROM_MAX) {
+	if (gsfrom <= TOTEMSRP_GSFROM_MAX) {
 		return gather_state_from_desc[gsfrom];
 	}
 	else {