From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suresh Jayaraman Subject: Subject: [PATCH] mount.cifs: remove redundant error assignment Date: Wed, 04 Aug 2010 12:31:40 +0530 Message-ID: <4C591054.1070007@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jeff Layton , Steve French Return-path: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: ... as it is done anyway at add_mtab_exit. Signed-off-by: Suresh Jayaraman --- 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; }