From: George Melikov Date: Thu, 19 Jan 2017 22:32:45 +0000 (+0300) Subject: Remove identical if statements in module/spl/spl-vnode.c X-Git-Tag: zfs-0.8.0-rc1~152^2~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cb44271b4c0b01afe5b84366e247f6d087df399;p=zfs Remove identical if statements in module/spl/spl-vnode.c Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #594 --- diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c index addc61155..d02e81643 100644 --- a/module/spl/spl-vnode.c +++ b/module/spl/spl-vnode.c @@ -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);