aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/fsys-getroot.c
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-08-24 11:09:05 +0200
committerJustus Winter <justus@gnupg.org>2017-08-24 23:22:24 +0200
commit59dacf77dc0aa25dfda3b192ec099e7310d543d2 (patch)
tree67b86043eeb4eeec0ecd74495eed7bf02c54a513 /libdiskfs/fsys-getroot.c
parenta3254ced93e2db103d7395c4d5a727260ae69894 (diff)
downloadhurd-59dacf77dc0aa25dfda3b192ec099e7310d543d2.tar.gz
hurd-59dacf77dc0aa25dfda3b192ec099e7310d543d2.tar.bz2
hurd-59dacf77dc0aa25dfda3b192ec099e7310d543d2.zip
libdiskfs: Simplify type checks.
* libdiskfs/diskfs.h (diskfs_begin_using_control_port): Check port class. * libdiskfs/fsys-getfile.c (diskfs_S_fsys_getfile): Drop check. * libdiskfs/fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * libdiskfs/fsys-goaway.c (diskfs_S_fsys_goaway): Likewise. * libdiskfs/fsys-options.c (diskfs_S_fsys_{s,g}et_options): Likewise. * libdiskfs/fsys-syncfs.c (diskfs_S_fsys_syncfs): Likewise.
Diffstat (limited to 'libdiskfs/fsys-getroot.c')
-rw-r--r--libdiskfs/fsys-getroot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c
index 6f93888f..735f359a 100644
--- a/libdiskfs/fsys-getroot.c
+++ b/libdiskfs/fsys-getroot.c
@@ -54,8 +54,7 @@ diskfs_S_fsys_getroot (struct diskfs_control *pt,
path: NULL,
};
- if (!pt
- || pt->pi.class != diskfs_control_class)
+ if (!pt)
return EOPNOTSUPP;
flags &= O_HURD;