Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3913015ybf; Tue, 3 Mar 2020 15:40:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vvGnJ3m0S8tLTubdOOnZo5Wl/Ot3xIAc08EqjXo/mQDCGzdJan8W9R/A94xlW6ya3tTIZ/k X-Received: by 2002:a54:4816:: with SMTP id j22mr685737oij.179.1583278825629; Tue, 03 Mar 2020 15:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583278825; cv=none; d=google.com; s=arc-20160816; b=IOYwpieryKHzu8ExeRK8s4JbKgHdRPz6I35AI4HntqDljlcCbmk2NCFv42Bz4o89vk hr5Akq7uH6mNRZ02Jrxq1mXZkh+IVCpzwTd4qmqXeqbViPtEt3mWfNtuWFB9gJzP44nh NxpdxmvwwopHTEWcLMvC8jedTLgzsigyjAqpQGixUlzsw7oynnKJk680pVFHxsAVIftY BoE+IfEG9QIn5vb1JziO+HcC4AmECZ8XK5kJVbSS0L3kT3ngPJK0/EWoKYLx8Pdq7Dqj KLBsauVQigwCs736mfnTUd/WQxVkqnnt8Ami7uoQmyFfdVkoZfb+fUsts5YZoyzTRJt/ zqtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=MlgGONKkRLK3NcvigeAJc91a/0y8Apuj7MwQf/mg+U0=; b=0smcEiKy+P80GUjAeV0JBFUVdI2mMhV6V8+x69KuDt9EHBzEYLbcjnF5R6068uEWMl KlMhKayojJ8+ZOvc//Y9OLvcJgfF9ZpxGgsAVn6ovWBIl5BtRIN0btbcmjCMgob7KTXn IdKhHmCPdUyX2qQZ/YtjDMegQEsi4Ktjv9I8wWoTEw4sFklyyrlBdN1VD9wqDz724r5v IKOwr2f0s+BWQ6kbAkorBLmj0YiWCgIBE6G2DRIq62B6cAZwJ+w5jZsCstwCsJqcJwon dgiQDEscDgrMbQTeOdTu+HOV+fYppOn6r0QVna7wKWdbeC9rAel94Ke+zE+rZsxnxIZg FgEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D9W5ElJ2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si89375otn.207.2020.03.03.15.40.13; Tue, 03 Mar 2020 15:40:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D9W5ElJ2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728915AbgCCXju (ORCPT + 99 others); Tue, 3 Mar 2020 18:39:50 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37637 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbgCCXju (ORCPT ); Tue, 3 Mar 2020 18:39:50 -0500 Received: by mail-pl1-f194.google.com with SMTP id b8so136039plx.4; Tue, 03 Mar 2020 15:39:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=MlgGONKkRLK3NcvigeAJc91a/0y8Apuj7MwQf/mg+U0=; b=D9W5ElJ2zxSPQm4mNWtoIMwwurVR9+YB+QwzGyMNY+2dod40+OQtgHk1q3WL8pPRYi btF0N+R5jBEgLjFYe+UritcA0LB7O2LpRC4TF6WnkYIUYHQs2oGEIJ1hopgAuDvLOrbR 99Qf4VTvjXvqXXGOSr71qqkt90axZRtZIeQPSx8NvO1TBgPdE6OLFDWyWyF8FnFv1zVK Yz+DCu48XhqgPtdAbDal/QSFSEcakC1n7h8nk1PThpkRVStI262AVvSFq3ySlUCtivXo XQlWw9ME8wwoKH0ZSOnwzO5dDtOWIsubW9wOPAxXlpbo0OnNiijNI6XopU+6aksokKYA gQqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=MlgGONKkRLK3NcvigeAJc91a/0y8Apuj7MwQf/mg+U0=; b=EotNq3q6mQ9zpSwPJfZUn/XQstN44AQVF4eNIqYAkTHFf6K72YT552pwBtUpQToW7J 1gQrq+UP8jKBErruAdePjC6d0Avj7Xm50lOG/CjZZ1BGScd7APKPbKzLP/eO8+wOOmuK 1iv0GjB+YsOS0rTHbRFWI6nV00xQMKL8m+7kG0X3GTCx9DMg/JDI1y/OaKlmOKDgiQlt 41lIyuViECOc+QOz4kB/3H30St8KYomXp/ykizOm0A6IMylhvYSzkhjX+n3hWu164GhD Mfvg80V6RZSfuu/ZSRUgsXBY0DAv62fZXMx//OU6I3etuhmDW4uhVS2iqTydOMe4LEDz Xi9Q== X-Gm-Message-State: ANhLgQ0tAE/Tf9jh1+/y40AF7+qoBli8GNRzE6Es8kbrsuJnjJwb66TM IZtTZ6qCKllZdreHUFlQicM= X-Received: by 2002:a17:90a:c390:: with SMTP id h16mr399pjt.131.1583278788877; Tue, 03 Mar 2020 15:39:48 -0800 (PST) Received: from VM_0_35_centos.localdomain ([150.109.62.251]) by smtp.gmail.com with ESMTPSA id d1sm25569029pgi.63.2020.03.03.15.39.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 15:39:48 -0800 (PST) From: Qiujun Huang To: sfrench@samba.org Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, smfrench@gmail.com, Qiujun Huang Subject: [PATCH] fs/cifs/cifsacl: remove set but not used variable 'rc' Date: Wed, 4 Mar 2020 07:39:43 +0800 Message-Id: <1583278783-11584-1-git-send-email-hqjagain@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is set but not used, So can be removed. Signed-off-by: Qiujun Huang --- fs/cifs/cifsacl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index 716574a..1cf3916 100644 --- a/fs/cifs/cifsacl.c +++ b/fs/cifs/cifsacl.c @@ -342,7 +342,6 @@ sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, struct cifs_fattr *fattr, uint sidtype) { - int rc; struct key *sidkey; char *sidstr; const struct cred *saved_cred; @@ -403,7 +402,6 @@ saved_cred = override_creds(root_cred); sidkey = request_key(&cifs_idmap_key_type, sidstr, ""); if (IS_ERR(sidkey)) { - rc = -EINVAL; cifs_dbg(FYI, "%s: Can't map SID %s to a %cid\n", __func__, sidstr, sidtype == SIDOWNER ? 'u' : 'g'); goto out_revert_creds; @@ -416,7 +414,6 @@ */ BUILD_BUG_ON(sizeof(uid_t) != sizeof(gid_t)); if (sidkey->datalen != sizeof(uid_t)) { - rc = -EIO; cifs_dbg(FYI, "%s: Downcall contained malformed key (datalen=%hu)\n", __func__, sidkey->datalen); key_invalidate(sidkey); -- 1.8.3.1