]> granicus.if.org Git - zfs/commitdiff
Remove identical if statements in module/spl/spl-vnode.c
authorGeorge Melikov <mail@gmelikov.ru>
Thu, 19 Jan 2017 22:32:45 +0000 (01:32 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 19 Jan 2017 22:32:45 +0000 (14:32 -0800)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #594

module/spl/spl-vnode.c

index addc611554b66b1b0994cee923d4868e0de0474e..d02e816436eae7b1618076b8e72d6d8d331d46f9 100644 (file)
@@ -63,9 +63,6 @@ vn_mode_to_vtype(mode_t mode)
        if (S_ISSOCK(mode))
                return VSOCK;
 
-       if (S_ISCHR(mode))
-               return VCHR;
-
        return VNON;
 } /* vn_mode_to_vtype() */
 EXPORT_SYMBOL(vn_mode_to_vtype);