From patchwork Sun Feb 26 06:33:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lizhe X-Patchwork-Id: 61576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1824034wrd; Sat, 25 Feb 2023 22:37:40 -0800 (PST) X-Google-Smtp-Source: AK7set97DscGMaoiJLt6+kJfc/tTvo47UhgGJFxpwYAFCrMW2U6BTpWh12B7qpiOEBmXXiW8PzOO X-Received: by 2002:a05:6a20:659c:b0:cc:fced:f700 with SMTP id p28-20020a056a20659c00b000ccfcedf700mr1991615pzh.30.1677393460419; Sat, 25 Feb 2023 22:37:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677393460; cv=none; d=google.com; s=arc-20160816; b=WWVEArDlQdBhXo7BGf7LdHp2TuLc3zCwS8AFkFKbX5zF0uRg/H9b3AKmO1Tu8DcflC alsJ9RbKocokAW/4m2qgc1i8jSGVVGd17yeFSM7d14rEkR5hVlGSSYinZc4hfYR+FHQk LyAcBA1LoYWpBMSj/YiN2Dntw+Zpsg3u4WhMMvB/aJiO86mlwtXXyPPvvRszpRj5xCR2 G+D4xVsD8f69c6rBD7ThfPFTKe0fbkdsrxM1HsVrttoh/NnUdl+ES0yuzvlen23FL4y/ VIf4G3LmOUM8I6jsSURvBW1mCVz8KPtz8r+xKiHpUJcUzhjMzjVsP9GM0Tb0NZUIya6w WRvw== 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=IvUAk44qX53mrmFeOTcMDnglMNl9yyPwVkGy2yi2D1Y=; b=RjwYlZPFY7Wh7V/JIMSYqOuVYI2IGP3UI7WPuEnvc86k3FJzQL34rIlkEGZ62tDfXL XA6OXmLozYexwIDhC3F54luzeJKGStL3OqyjgV6m3VKmO0j3kTO/j9ytxHX/J8BXIu5b AIhPcEPIB1IubmBTR6ZEPtLS8yQIIDKsQl2BzUN7t/z27K61eV3yiJB3a8ja7XBPcrxh /n/RRA1nqVpa48cjHJUNoursl7oHgXMs101Cszo8S1dkNw4+C5dKcl8iV0bvyZcQJwpp 5ioFNvwGsiYdYcXvpeNOe336Q+AMOnKu85CvCb8t8nU1ARM/9tB5v1kUoxhGbr9a2Lla YYrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=QV4sIn1p; 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=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p27-20020aa79e9b000000b005a8be9b1b56si3630788pfq.217.2023.02.25.22.37.26; Sat, 25 Feb 2023 22:37:40 -0800 (PST) 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=@163.com header.s=s110527 header.b=QV4sIn1p; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229504AbjBZGfJ (ORCPT + 99 others); Sun, 26 Feb 2023 01:35:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjBZGfI (ORCPT ); Sun, 26 Feb 2023 01:35:08 -0500 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D01C3B771 for ; Sat, 25 Feb 2023 22:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=IvUAk 44qX53mrmFeOTcMDnglMNl9yyPwVkGy2yi2D1Y=; b=QV4sIn1p8CQDw71lxR4UL MbzvVFJveAbBp2CfL97jqs1HH8WI/IbLMukbwXmWnczpJ0bW05bqSvAi/+clBhVn YiXzWg9ePy/XA8gYgbiqFELqSbSBvdBvsZ45i6XM6ynDJtfszipgQhqOautKaZFH jvPAwC2BNEJPGjiBXXOEOA= Received: from lizhe.. (unknown [120.245.132.180]) by zwqz-smtp-mta-g4-2 (Coremail) with SMTP id _____wC3FrdB_fpj1ZL2BA--.35734S4; Sun, 26 Feb 2023 14:34:16 +0800 (CST) From: Lizhe To: broonie@kernel.org, heiko@sntech.de Cc: linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Lizhe Subject: [PATCH v1] drivers/spi-rockchip.c : Remove redundant variable slave Date: Sun, 26 Feb 2023 14:33:34 +0800 Message-Id: <20230226063334.7489-1-sensor1010@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: _____wC3FrdB_fpj1ZL2BA--.35734S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7XrWxKr17Ww1DXw4rtr43Wrg_yoW3Grc_ua 1UuF4xWw48trsaya18K343CrZYvFsagr1v9F4qqFWSg3yDAr18ZwnYvay5J3WUZw4xCr97 CFyjqw1akF98CjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRM5l8UUUUUU== X-Originating-IP: [120.245.132.180] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/1tbiSAsiq1+FhCf6VQAAsc X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758874525409075941?= X-GMAIL-MSGID: =?utf-8?q?1758874525409075941?= variable slave in spi_alloc_master() or spi_alloc_slave() has been assigned. it is not necessary to be assigned again Signed-off-by: Lizhe --- drivers/spi/spi-rockchip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 79242dc5272d..a45717eb8890 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -772,7 +772,6 @@ static int rockchip_spi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, ctlr); rs = spi_controller_get_devdata(ctlr); - ctlr->slave = slave_mode; /* Get basic io resource and map it */ mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);