From patchwork Mon Jul 8 04:14:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 811409 Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id C2FE511712; Mon, 8 Jul 2024 04:14:34 +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=1720412078; cv=none; b=dvnrbcyMNG3BN9zuaGylcF2ykf+Nf6DECyJQS6iZF9aBFvr/VuOuPgG6GCaZCS/0FpByo1fWt/ybuRUDrnbWPzr8ESR4skOxwonDP/G+Wnx3RrYkkdViAjpzV+3FKz0JaV4Pbvsy36ggIPJpJSYUi/LjCpSYm3F/9ZLOPXedK/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720412078; c=relaxed/simple; bh=DsDpniR6BJcsEraxp43vnh43KbE2Z47Whw/LL1tE14s=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=aOlg/3pmNBc+ZJiM1LmSgu3De01USSTAuu6rvZAbPZmMbSQAWMNlm6uZKc8KBL0PTKlaaZLwvlOXGvpatg3A2qr34qcbnQuPN/9ABTEjBIxZISGlI6RkbJbOSOD7RizkR/bjX8EpxuPaalxuYl1ukHFFEoq6trkLri1xGyYk9ag= 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 944896053E71A; Mon, 8 Jul 2024 12:14:18 +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_status?= Date: Mon, 8 Jul 2024 12:14:11 +0800 Message-Id: <20240708041411.14424-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 status 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 bb731ab697a8..b1d85036d384 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -3925,7 +3925,7 @@ static int spi_set_cs_timing(struct spi_device *spi) int spi_setup(struct spi_device *spi) { unsigned bad_bits, ugly_bits; - int status = 0; + int status; /* * Check mode to prevent that any two of DUAL, QUAD and NO_MOSI/MISO