svn commit: samba r15738 - in branches/SAMBA_4_0/source/ntvfs/posix: .

metze at samba.org metze at samba.org
Sat May 20 09:54:11 GMT 2006


Author: metze
Date: 2006-05-20 09:54:10 +0000 (Sat, 20 May 2006)
New Revision: 15738

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15738

Log:
make the code more readable

metze
Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c	2006-05-20 09:38:59 UTC (rev 15737)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c	2006-05-20 09:54:10 UTC (rev 15738)
@@ -65,18 +65,13 @@
 		    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;
 }
-



More information about the samba-cvs mailing list