Unionfs: minor checkpatch fixes
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 28 Jul 2008 04:25:46 +0000 (00:25 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:38:25 +0000 (22:38 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/main.c
fs/unionfs/super.c

index 6484e2bc70b13dff416e55217d0f7891255bde1f..0cdd50b788443028982edcbfda91eb372e747d46 100644 (file)
@@ -459,8 +459,6 @@ static struct unionfs_dentry_info *unionfs_parse_options(
 
        while ((optname = strsep(&options, ",")) != NULL) {
                char *optarg;
-               char *endptr;
-               int intval;
 
                if (!optname || !*optname)
                        continue;
@@ -493,16 +491,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);
index f163c08b4043f61d5ebf10c5e663b3c79d14d3c3..1f4b3f448b5c2a9bfc4fa3fa3908ea47e88fe5a2 100644 (file)
@@ -33,8 +33,8 @@ struct inode *unionfs_iget(struct super_block *sb, unsigned long ino)
        inode = iget_locked(sb, ino);
        if (!inode)
                return ERR_PTR(-ENOMEM);
-       if (!(inode->i_state & I_NEW))
-               return inode;
+       if (!(inode->i_state & I_NEW))
+               return inode;
 
        info = UNIONFS_I(inode);
        memset(info, 0, offsetof(struct unionfs_inode_info, vfs_inode));