summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/ext2_vnops.c4
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vnops.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/ext2_vnops.c b/sys/gnu/ext2fs/ext2_vnops.c
index f08c1ad..d7e1659 100644
--- a/sys/gnu/ext2fs/ext2_vnops.c
+++ b/sys/gnu/ext2fs/ext2_vnops.c
@@ -1750,9 +1750,11 @@ ext2_vinit(mntp, specops, fifoops, vpp)
vp = *vpp;
ip = VTOI(vp);
switch(vp->v_type = IFTOVT(ip->i_mode)) {
- case VCHR:
case VBLK:
vp->v_op = specops;
+ break;
+ case VCHR:
+ vp->v_op = specops;
vp = addaliasu(vp, ip->i_rdev);
ip->i_vnode = vp;
break;
diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c
index f08c1ad..d7e1659 100644
--- a/sys/gnu/fs/ext2fs/ext2_vnops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vnops.c
@@ -1750,9 +1750,11 @@ ext2_vinit(mntp, specops, fifoops, vpp)
vp = *vpp;
ip = VTOI(vp);
switch(vp->v_type = IFTOVT(ip->i_mode)) {
- case VCHR:
case VBLK:
vp->v_op = specops;
+ break;
+ case VCHR:
+ vp->v_op = specops;
vp = addaliasu(vp, ip->i_rdev);
ip->i_vnode = vp;
break;
OpenPOWER on IntegriCloud