Unionfs: minor checkpatch fixes
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 27 Jul 2008 22:49:13 +0000 (18:49 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 27 Jul 2008 22:49:13 +0000 (18:49 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/main.c

index b5b6bd93c1a33cb5ae6d92df36729ab0fd5830e5..12fd13e4d73b2f6af723d58acf08726c10f9d9c2 100644 (file)
@@ -460,8 +460,6 @@ static struct unionfs_dentry_info *unionfs_parse_options(
 
        while ((optname = strsep(&options, ",")) != NULL) {
                char *optarg;
-               char *endptr;
-               int intval;
 
                if (!optname || !*optname)
                        continue;
@@ -494,16 +492,6 @@ static struct unionfs_dentry_info *unionfs_parse_options(
                        continue;
                }
 
-               /* All of these options require an integer argument. */
-               intval = simple_strtoul(optarg, &endptr, 0);
-               if (*endptr) {
-                       printk(KERN_ERR
-                              "unionfs: invalid %s option '%s'\n",
-                              optname, optarg);
-                       err = -EINVAL;
-                       goto out_error;
-               }
-
                err = -EINVAL;
                printk(KERN_ERR
                       "unionfs: unrecognized option '%s'\n", optname);