From: Alf Wachsmann Date: Thu, 29 Jul 2004 05:09:18 +0000 (+0000) Subject: afsmonitor-remove-pointless-if-20040729 X-Git-Tag: BP-openafs-stable-1_4_x~60 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9e6977f39e04f9700b1923f7167331f59cb711ae;p=packages%2Fo%2Fopenafs.git afsmonitor-remove-pointless-if-20040729 FIXES 5933 an if in an else which will always trigger is dumb --- diff --git a/src/afsmonitor/afsmonitor.c b/src/afsmonitor/afsmonitor.c index 10be1b771..14ca3da06 100644 --- a/src/afsmonitor/afsmonitor.c +++ b/src/afsmonitor/afsmonitor.c @@ -898,7 +898,7 @@ parse_threshEntry(a_line) fprintf(stderr, "[ %s ] Programming error 2\n", rn); return (-1); } - } else if ((strcasecmp(arg1, "cm")) != 0 && (strcasecmp(arg1, "cm")) != 0) { + } else { fprintf(stderr, "[ %s ] Syntax error. Second argument should be \"fs\" or \"cm\" \n", rn);