Subject: [PATCH] mount.cifs: remove redundant error assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



... as it is done anyway at add_mtab_exit.

Signed-off-by: Suresh Jayaraman <sjayaraman@xxxxxxx>
---
 mount.cifs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/mount.cifs.c b/mount.cifs.c
index 9f04261..49fdd08 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -1513,7 +1513,6 @@ add_mtab(char *devname, char *mountpoint, unsigned long flags, const char *fstyp
 	rc = lock_mtab();
 	if (rc) {
 		fprintf(stderr, "cannot lock mtab");
-		rc = EX_FILEIO;
 		goto add_mtab_exit;
 	}
 
@@ -1521,7 +1520,6 @@ add_mtab(char *devname, char *mountpoint, unsigned long flags, const char *fstyp
 	if (!pmntfile) {
 		fprintf(stderr, "could not update mount table\n");
 		unlock_mtab();
-		rc = EX_FILEIO;
 		goto add_mtab_exit;
 	}
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux