From patchwork Wed Aug 4 07:01:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suresh Jayaraman X-Patchwork-Id: 116960 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7471lOg009088 for ; Wed, 4 Aug 2010 07:01:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932583Ab0HDHBr (ORCPT ); Wed, 4 Aug 2010 03:01:47 -0400 Received: from cantor2.suse.de ([195.135.220.15]:55776 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932516Ab0HDHBq (ORCPT ); Wed, 4 Aug 2010 03:01:46 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id B7C798765C; Wed, 4 Aug 2010 09:01:45 +0200 (CEST) Message-ID: <4C591054.1070007@suse.de> Date: Wed, 04 Aug 2010 12:31:40 +0530 From: Suresh Jayaraman User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100714 SUSE/3.0.6 Thunderbird/3.0.6 MIME-Version: 1.0 To: Jeff Layton , Steve French Cc: linux-cifs@vger.kernel.org Subject: Subject: [PATCH] mount.cifs: remove redundant error assignment Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 04 Aug 2010 07:01:48 +0000 (UTC) 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