diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-05-20 09:54:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:10 -0500 |
commit | 1a60ed5aa86c41e86ea046d54a378bbd45ce7709 (patch) | |
tree | b3419aed90841104fda36ed97b15a0c2e8d2105a /source4/ntvfs | |
parent | b77eaaa3bc7cd27320496440deda8a6ca62f7f5a (diff) | |
download | samba-1a60ed5aa86c41e86ea046d54a378bbd45ce7709.tar.gz samba-1a60ed5aa86c41e86ea046d54a378bbd45ce7709.tar.bz2 samba-1a60ed5aa86c41e86ea046d54a378bbd45ce7709.zip |
r15738: make the code more readable
metze
(This used to be commit 5114cab66294aa4fce586bb47a90ae32450ddbf3)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/posix/pvfs_ioctl.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source4/ntvfs/posix/pvfs_ioctl.c b/source4/ntvfs/posix/pvfs_ioctl.c index 417458edf0..3744530a7a 100644 --- a/source4/ntvfs/posix/pvfs_ioctl.c +++ b/source4/ntvfs/posix/pvfs_ioctl.c @@ -65,18 +65,13 @@ NTSTATUS pvfs_ioctl(struct ntvfs_module_context *ntvfs, struct ntvfs_request *req, union smb_ioctl *io) { - NTSTATUS status = NT_STATUS_UNSUCCESSFUL; - switch (io->generic.level) { case RAW_IOCTL_IOCTL: - status = pvfs_ioctl_old(ntvfs, req, io); - break; + return pvfs_ioctl_old(ntvfs, req, io); case RAW_IOCTL_NTIOCTL: - status = pvfs_ntioctl(ntvfs, req, io); - break; + return pvfs_ntioctl(ntvfs, req, io); } - return status; + return NT_STATUS_INVALID_LEVEL; } - |