Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2319700pxj; Sun, 13 Jun 2021 16:37:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqoA6H8+q42jARiwAXX/2/arH7mqgdhqW2X8oEAbciyBDx/thaDv+IHR+XsRinMIkmJvtZ X-Received: by 2002:a17:906:340d:: with SMTP id c13mr13019760ejb.457.1623627475256; Sun, 13 Jun 2021 16:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623627475; cv=none; d=google.com; s=arc-20160816; b=rIpMPk7OyhegHYjlI8InlZAhTXWRtvALsVwRecjBb36BOubd0Zh2JeWhm/ur+xlEpM t4VgSLBrcP4m3wIC7dK36JESiCuxlnd/Z2NWnQTKse1fHgIZ+BNO566OmoBF3DzK3uMK rtD4SD9A6EjqYTukt+No6mgAGRs9WO1+XPOx77Zk3LzF11HN3t7ZIf19Pj9QrWKnKi+X j4wsV6NZuFx2/4eQdr0mZWFQsTro51CTxLrn4hicgh0bIsIZgU8LoAGkmwa7ApvcZhPO ca4XmkQFf5JNYUKMkfa5Z+xNvoQzmXcsNKeOjE7ivHzJm70U3XnI/p7KDKz1lZAVTYyG NEgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vV90fcW15TwLBPqHX4M775nsbVmDSBXQLEB4HxZLGiU=; b=bUOwj9E9mLOhO/rp3g0A8ThajTOppUU21UVlfR70uJNlLVT17ceKmY8pIeCaGELi0m 9cRyeF5fFxxkWW6504nqiEO2xvQft8AEhhEk29R7mrz7qmPzIVyXvbHNMMJL4FII1kNb AxLT3UNazZiocV2NkZwyDFyGJLKDKdf8VvfOkoWDsaO8VNY/OPG2v3s8TCZbVaX5TLUX IPaQj/DswRyodfO8dB2Vmz4zBavKY3SDgu58XN4Th40j/aEAOjE2R7cpBWg7i+JhDSnm iwN+8M6MhbjUVlnZL0vqMT8MgXXBw4b62Jk7++cAIxBE+bAaE4wh32MdpNZJ1cN2B/ax +AyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=seRI9gna; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id y12si9547465ejc.650.2021.06.13.16.37.32; Sun, 13 Jun 2021 16:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=seRI9gna; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232230AbhFMXgj (ORCPT + 99 others); Sun, 13 Jun 2021 19:36:39 -0400 Received: from mail-lj1-f181.google.com ([209.85.208.181]:34467 "EHLO mail-lj1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232181AbhFMXgj (ORCPT ); Sun, 13 Jun 2021 19:36:39 -0400 Received: by mail-lj1-f181.google.com with SMTP id bn21so17617247ljb.1; Sun, 13 Jun 2021 16:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vV90fcW15TwLBPqHX4M775nsbVmDSBXQLEB4HxZLGiU=; b=seRI9gnaOlXqsebUbY+0EN2h31nRN9n29+w6E/Yx07jhyfc5lmimOLjlpBQ2ZmWXOt QZZTYfQVaqTB6KlTdUGhCEFyTlFAnEZk1M6iIxWovvkZgJitCEWKbpfz+msd5OjRqAEu 458+/fspmIX1Dn+UukB9FpSxC0XvVtmzaaf1lg+jK0OgwaKZ2q8F6LP7SZRuR2yBVtEc brkyT+zIPf0NauAK9rXQhU57B3zcj7sIGrVc0j14pV7NeD/pxu7SWq6Ox/Ac83oLvTjZ zUc4HTEQMmwTmEpvEJ3StL5Hev64Lo/ryfTlpb/yXAjn6y6cjIkkPZ0Anm3wn7++KvF1 7LJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vV90fcW15TwLBPqHX4M775nsbVmDSBXQLEB4HxZLGiU=; b=SCZm+Q3zVw+0mU/d4DuOoh1D+iZFv2B1Wa8zAwSFndL2TVomcu6j4Epli024I0LjjW pB+dyJtpb5lJQdtfJfN6Vyc5fPqjYGgATElCx0f0lRxCwHrTTxkEQotgctZbUpFZlypC TzZ2K3/i8uspbtKf2sNe6p6+tGU4F8KVpmUKswg1z7GKCLuVHq2JrP0iSMA/tksYOAx0 kJ/8hk23Y3XfcBAZlwdnxghQvR7MMHSQpMbFPFvJ682J2HtuoM58cicmElflck/ucMwd X/U/5OHpFbr2uUkfrERtJO9Y/yifIjWAfs8yqCGsgNQriAhsZqW11jSbODuKjrk8/dBO +G6Q== X-Gm-Message-State: AOAM5323/YJGS747RJYnI/0gaLSY+iCtV70QAJfN1zaR0FIubz8pioI1 R8NdwX1o/yd7OxMy5SRbRgDI8XCN6b7zt5yIiTmBsxzEMYM= X-Received: by 2002:a2e:a7ca:: with SMTP id x10mr11349512ljp.218.1623627201751; Sun, 13 Jun 2021 16:33:21 -0700 (PDT) MIME-Version: 1.0 References: <20210613140123.74900-1-colin.king@canonical.com> In-Reply-To: <20210613140123.74900-1-colin.king@canonical.com> From: Steve French Date: Sun, 13 Jun 2021 18:33:10 -0500 Message-ID: Subject: Re: [PATCH] cifs: remove redundant initialization of variable rc To: Colin King Cc: Steve French , CIFS , samba-technical , kernel-janitors , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org merged into cifs-2.6.git for-next On Sun, Jun 13, 2021 at 9:02 AM Colin King wrote: > > From: Colin Ian King > > The variable rc is being initialized with a value that is never read, the > assignment is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- > fs/cifs/cifssmb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c > index 037c44bf48f1..277cb1044cbe 100644 > --- a/fs/cifs/cifssmb.c > +++ b/fs/cifs/cifssmb.c > @@ -1238,7 +1238,7 @@ SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon, > int *pOplock, FILE_ALL_INFO *pfile_info, > const struct nls_table *nls_codepage, int remap) > { > - int rc = -EACCES; > + int rc; > OPENX_REQ *pSMB = NULL; > OPENX_RSP *pSMBr = NULL; > int bytes_returned; > -- > 2.31.1 > -- Thanks, Steve