summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-20 09:54:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:10 -0500
commit1a60ed5aa86c41e86ea046d54a378bbd45ce7709 (patch)
treeb3419aed90841104fda36ed97b15a0c2e8d2105a /source4/ntvfs/posix
parentb77eaaa3bc7cd27320496440deda8a6ca62f7f5a (diff)
downloadsamba-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/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_ioctl.c11
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;
}
-