Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp34395rwb; Mon, 3 Oct 2022 23:36:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5GlXw556d3xHLTGaZFchLMF4Mt1rwT+CNihkebvf9g7YdTXVQFe9EwArQ2DvOK18bL79m/ X-Received: by 2002:a17:907:1ddb:b0:78c:5013:289e with SMTP id og27-20020a1709071ddb00b0078c5013289emr4810181ejc.407.1664865405368; Mon, 03 Oct 2022 23:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664865405; cv=none; d=google.com; s=arc-20160816; b=y1EnKtjuGkZzqeXnM0c9Eq8HPzuDAbufZclgGcWQCRLBDR3HtH5w+fJeu3fxUXXx5A hdkh8ZEgA+xFeIe36Wk5HJvESBW8LaREOjC/+YmaBDadP6gfmD/EFEvNJOPQTZPboMcN ih6opa7dPaJX1WYhVqDXQOHDrn3+DY4lD3OMxwKX1V99lCP2iMUOiQ8wKUhCsmOQkb2O Xav6UHZL5KqHONE1wa/bxqLfFuJFGJx1ShsxkwH/YpqOHgz66hDcMUvNizm/rdLHKEwh Z8CvFdwkZFFMfPJ+2TJssHmclxqz9C6sqo6GxGjRGIxobAerqwJPJLOMLsdG2INXWKuL aXRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ekzRgsCCbbHM6IrufVodQ6cKmjQ+fa+cp30gpi0UU24=; b=Wz/1EPtHCrCTttuYWJo9kM0lvtV2Mt+g05XTaILBG/dyu5QPf+wyBmil71A5kt7riw E/b92L1nVgxq4Zodhq9vYYdx3PttTb7VqGW5lEenmNZBYNJXCnDqy2Fcqq7xOWo/g1Iw w1/zjMw5A7nX790Lcn9KJN9wlme52I0QnMeeQgyh7MRRmcdS4vXi/YokEiuMPNU/yaFk PU2Yy7yILObBK8UOHOLTI3Ho8Zi+SReM0Qk+5iSR6tvF6tX+N+SJLp4ttyqTczKvjOUD pXnqXDKWcchffyXm0iPYiSYGe3jPEkjG0HdOAGajc2TTB7yLfaBRNUiMqBqAo4xNaFmS d2Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="jw/oCwLc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg5-20020a170907970500b007828ae31468si9172085ejc.698.2022.10.03.23.36.20; Mon, 03 Oct 2022 23:36:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="jw/oCwLc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbiJDGYp (ORCPT + 99 others); Tue, 4 Oct 2022 02:24:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiJDGYm (ORCPT ); Tue, 4 Oct 2022 02:24:42 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD4741120; Mon, 3 Oct 2022 23:24:38 -0700 (PDT) Received: from lenovo.Home (unknown [39.45.148.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id 037C0660225F; Tue, 4 Oct 2022 07:24:34 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1664864677; bh=e7N33XmmW7DJXwdVzcj7bT09AaYcxc7AS55NGR1APok=; h=From:To:Cc:Subject:Date:From; b=jw/oCwLcKbVwJb24RT2XEeOQkE80heVoZsJoWzwUFbWARHXH+VzQL3lp7cFYjXo0L Ami50vmN1nhLy103aTWy4uqEyJNnQtx4PJqyAHWHiNbck7uX9eGoBV3tIaxx5frDlN tI3bV02fFATt+1F8qjNcPQT6vgH874VOehWH6YYtAWh248AgcjoXZ5daWBY7hXAaKd DUcDDJlAeNmWsPPgKdrhYrmaxQu75CHSNf/G+fRd312j8Cid2LkFw2pT6YmM1oA5D8 WPEmMZrZTaBHsfZrKe6JxBrprfpnZ0cb5F+dCQz+LOjLpp36CRRwGtmyrgVv++qhVQ POBS/BhDIZzZg== From: Muhammad Usama Anjum To: Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey Cc: Muhammad Usama Anjum , kernel@collabora.com, kernel-janitors@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] cifs: remove initialization value Date: Tue, 4 Oct 2022 11:23:32 +0500 Message-Id: <20221004062333.416225-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't initialize the rc as its value is being overwritten before its use. Signed-off-by: Muhammad Usama Anjum --- fs/cifs/smb2pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 0600f0a07628..2bf43c892ae6 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -879,7 +879,7 @@ SMB2_negotiate(const unsigned int xid, struct smb2_negotiate_rsp *rsp; struct kvec iov[1]; struct kvec rsp_iov; - int rc = 0; + int rc; int resp_buftype; int blob_offset, blob_length; char *security_blob; -- 2.30.2