]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/mount.c
umount.nfs: eliminate a nearly empty header file.
[nfs-utils.git] / utils / mount / mount.c
index 92ed2bcc3112d08faeb8417bf6160edd8410b56a..d6d527cc5cb7d5d531c72123dbd51e461dcab1dc 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "nfs_mount.h"
 #include "nfs4_mount.h"
-#include "nfsumount.h"
 #include "mount.h"
 #include "error.h"
 #include "network.h"
@@ -374,13 +373,8 @@ int main(int argc, char *argv[])
 
        discover_nfs_mount_data_version();
 
-       if(!strncmp(progname, "umount", strlen("umount"))) {
-               if(argc < 2) {
-                       umount_usage();
-                       exit(EX_USAGE);
-               }
+       if(!strncmp(progname, "umount", strlen("umount")))
                exit(nfsumount(argc, argv));
-       }
 
        if (argv[1] && argv[1][0] == '-') {
                if(argv[1][1] == 'V')