From patchwork Mon Jul 8 03:53:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 812281 Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 6565DAD2C; Mon, 8 Jul 2024 03:53:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720410833; cv=none; b=lN3cBIXBksZNzQqRajyq75IBbEnFkHrkb4iNxTxfYnSI/n5kNndgGQYFjRi/EizkzGWvofdN/Q5lOutno96LtNVWEaaNqXDKjXVDC8Ud3B9bfTNF7MjlndPiiyj1NyPP1MRNm+N+TvhFczgBPphieO6j6COJ+nb3MCo66PChyXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720410833; c=relaxed/simple; bh=q5EHY7U+Pu/wGwLPV9BYSYENr4LtnAwMhfePpdUBFQU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=t28/Hv9uIyhKY7I5PhQeIPxN4e6UqXkdIv1skuaiC0lQooiuXTEVisp/2jKqnr+ERNCtgeQ7SHTEnbGSWezPdjEwaxAjp6dwXo5yI5k98TZNlyym6G8rMQlZBA+pMFLQzFrjPoatGs2naT50QljrKTKNPRXgAIQX50rFomne8oo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (MailData Gateway V2.8.8) with ESMTPA id 6313D6053C91D; Mon, 8 Jul 2024 11:53:27 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?utf-8?q?spi=3A_spi=3A_Remove_unnecessary_=E2=80=980?= =?utf-8?q?=E2=80=99_values_from_rc?= Date: Mon, 8 Jul 2024 11:53:20 +0800 Message-Id: <20240708035320.14241-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 rc is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index fc13fa192189..bb731ab697a8 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2594,7 +2594,7 @@ struct spi_device *spi_new_ancillary_device(struct spi_device *spi, { struct spi_controller *ctlr = spi->controller; struct spi_device *ancillary; - int rc = 0; + int rc; /* Alloc an spi_device */ ancillary = spi_alloc_device(ctlr);