Remove identical if statements in module/spl/spl-vnode.c
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes #594
This commit is contained in:
parent
0194e4a03c
commit
5cb44271b4
|
@ -63,9 +63,6 @@ vn_mode_to_vtype(mode_t mode)
|
||||||
if (S_ISSOCK(mode))
|
if (S_ISSOCK(mode))
|
||||||
return VSOCK;
|
return VSOCK;
|
||||||
|
|
||||||
if (S_ISCHR(mode))
|
|
||||||
return VCHR;
|
|
||||||
|
|
||||||
return VNON;
|
return VNON;
|
||||||
} /* vn_mode_to_vtype() */
|
} /* vn_mode_to_vtype() */
|
||||||
EXPORT_SYMBOL(vn_mode_to_vtype);
|
EXPORT_SYMBOL(vn_mode_to_vtype);
|
||||||
|
|
Loading…
Reference in New Issue