From a58dbff274569d462b2f0c6a85bf0d6e63df19ac Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Mon, 28 Jul 2008 02:15:43 -0400 Subject: [PATCH] Unionfs: minor checkpatch fixes Signed-off-by: Erez Zadok --- fs/unionfs/main.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c index d2e61cdb4a4..dbfe28f362f 100644 --- a/fs/unionfs/main.c +++ b/fs/unionfs/main.c @@ -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); -- 2.34.1