From patchwork Tue Sep 3 05:31:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keiji Hayashibara X-Patchwork-Id: 172771 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp5188014ily; Mon, 2 Sep 2019 22:31:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxQ61AXflt1GKbgn32TKY0RD2gKh1e161ZORnes0WCPQjpmAHo5YHGV2o2l/kh9YfoQxR/ X-Received: by 2002:a63:205f:: with SMTP id r31mr28589872pgm.159.1567488669257; Mon, 02 Sep 2019 22:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567488669; cv=none; d=google.com; s=arc-20160816; b=ICbEvJp1jFd61Jm81kLmP5kGoOd0ZIPx9AxQzmswi+BAXU/CQot+8qiUCecBBbcEqH PAYkG2yF4cX+r1bbwsQrjt7tdNus8I7L6WB9Gltckfs15/NB0b+A2+6uC4yyaBldC5yE COicb+59IygiIV03QVZOqXUx6tDMKd0xpKmMT16uvImqh+etzeiwso2DuIZNV1DlIVE0 1WfsfBWL9d6K7fwbucyAYoUsJJLuNi4pW+x7pzsdYyTtjPAlyYu2UrQuZ0sn6LOJrKkD eubaljlSoikxS77S5OyLZVuH3E8tdz720nYkiu9NEhFpghS5l8Y7OTjtrmRzUVq8330r qJOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=gCeztLSDtlp40w7bSPoTjzH4sOQcrIsBGvd3o/Yi1aU=; b=QHUzaCvxr+cplcngCA65YjWNMIorxp89Le9TSQxirc712u5M7VUyrhmQViz7bGVN7o nj9sVscsENXZjIMO+T6b8LZafBbgzrWxY8rcJcxCNQkBz8q8GcSfJS99UZr6XZ0Bvkxs bJC8rH0ZDnc0d5MGyjrlAb1o27b9wMePkV9dl96OeVEThnD7Z94YcEaELae722+LB6be zSRPOC63W/C7Oxeg0+p1c3MqZL6Pa35qo5ACdGgp1rn5gsUXSMMLiksXrHpvZM5zFPHp dqWi+M3bttHBClKa2UNhebircPdUswXUBiakZvq4/bU3vl7hHWFQ5Oe30DwsGujrmpjY 1DSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a186si13361306pge.365.2019.09.02.22.31.08; Mon, 02 Sep 2019 22:31:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726631AbfICFbI (ORCPT + 28 others); Tue, 3 Sep 2019 01:31:08 -0400 Received: from mx.socionext.com ([202.248.49.38]:49352 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbfICFbG (ORCPT ); Tue, 3 Sep 2019 01:31:06 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 03 Sep 2019 14:31:05 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 535F6605FA; Tue, 3 Sep 2019 14:31:05 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 3 Sep 2019 14:31:05 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 1ADCC1A0E9F; Tue, 3 Sep 2019 14:31:05 +0900 (JST) Received: from hamster.e01.socionext.com (unknown [10.213.134.20]) by yuzu.css.socionext.com (Postfix) with ESMTP id E5B391204B3; Tue, 3 Sep 2019 14:31:04 +0900 (JST) From: Keiji Hayashibara To: broonie@kernel.org, yamada.masahiro@socionext.com, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, linux-kernel@vger.kernel.org, hayashibara.keiji@socionext.com Subject: [PATCH 2/3] spi: uniphier: remove unnecessary code Date: Tue, 3 Sep 2019 14:31:00 +0900 Message-Id: <1567488661-11428-3-git-send-email-hayashibara.keiji@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1567488661-11428-1-git-send-email-hayashibara.keiji@socionext.com> References: <1567488661-11428-1-git-send-email-hayashibara.keiji@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit removed if() because priv->is_save_param is always true. Signed-off-by: Keiji Hayashibara --- drivers/spi/spi-uniphier.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c index e6ebbb1..d40ad93 100644 --- a/drivers/spi/spi-uniphier.c +++ b/drivers/spi/spi-uniphier.c @@ -227,8 +227,7 @@ static void uniphier_spi_setup_transfer(struct spi_device *spi, priv->speed_hz = t->speed_hz; } - if (!priv->is_save_param) - priv->is_save_param = true; + priv->is_save_param = true; /* reset FIFOs */ val = SSI_FC_TXFFL | SSI_FC_RXFFL;