summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
-