tree f0eeb4d53e99918cb7192284285751918ba9a570
parent e7e6603f55140fde7c798a5d74471896596b212a
author Andrey J. Melnikoff (TEMHOTA <[EMAIL PROTECTED]> Thu, 18 Aug 2005 
16:01:14 +0400
committer Marcelo Tosatti <[EMAIL PROTECTED]> Thu, 18 Aug 2005 19:30:31 -0300

[PATCH] Remove isofs useless unsigned " < 0" comparison

This patch fix gcc-3.4 warnings by remove useless "if (ivalue < 0)"
comparison.

 fs/isofs/inode.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c
--- a/fs/isofs/inode.c
+++ b/fs/isofs/inode.c
@@ -338,13 +338,13 @@ static int parse_options(char *options, 
                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) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-24" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to