OSDN Git Service

[PATCH] Remove isofs useless unsigned " < 0" comparison
authorAndrey J. Melnikoff (TEMHOTA <temnota@kmv.ru>
Thu, 18 Aug 2005 12:01:14 +0000 (16:01 +0400)
committerMarcelo Tosatti <marcelo@dmt.cnet>
Thu, 18 Aug 2005 16:30:31 +0000 (13:30 -0300)
This patch fix gcc-3.4 warnings by remove useless "if (ivalue < 0)"
comparison.

fs/isofs/inode.c

index 3c0dc6c..08c0d03 100644 (file)
@@ -338,13 +338,13 @@ static int parse_options(char *options, struct iso9660_options * popt)
                else if (!strcmp(this_char,"session") && value) {
                        char * vpnt = value;
                        unsigned int ivalue = simple_strtoul(vpnt, &vpnt, 0);
-                       if(ivalue < 0 || ivalue >99) return 0;
+                       if (ivalue > 99) return 0;
                        popt->session=ivalue+1;
                }
                else if (!strcmp(this_char,"sbsector") && value) {
                        char * vpnt = value;
                        unsigned int ivalue = simple_strtoul(vpnt, &vpnt, 0);
-                       if(ivalue < 0 || ivalue >660*512) return 0;
+                       if (ivalue > 660*512) return 0;
                        popt->sbsector=ivalue;
                }
                else if (!strcmp(this_char,"check") && value) {