From patchwork Fri Nov 14 02:10:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 40796 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 59A2A240ED for ; Fri, 14 Nov 2014 02:12:17 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e51sf10136649eek.10 for ; Thu, 13 Nov 2014 18:12:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=6LJzpiE7rfX9Nx8WA3eb2hyQdKDyESbJqmZB0OFKruA=; b=W76h2fUy+6hAuMgGA1fgfkavcvz44Af0EDbzPEUeipEs8XL+yUqzgWEFffN219Gmta xYklFrWkXfl5rKVvOZEqvgDLGpQXvwU2qj/XASXfjoCU/TrKX5cs3txfaTzRT3YzBHvl lJpB/82ubYc3lOZhdPW7zUN3mzDCexER945Lg+7zdM42UCY06/lDvwMvpLAKwB4aUIcp 2oeD1iut1UhSvR2igyVhRk+BnhkvyzQA6ErkQAthkcgwSLuXDiJ79dvfka6X6JaZ5GYp kqAw81MBbR89UnMZvan1scMaGvOoDrEuaBg5C+z9EfEqKk9qq6XkatOmaYbO5HHZ8KOy AYOg== X-Gm-Message-State: ALoCoQkvHmk1v5YiA7hjM/TjmxSuzc27A0I2nlQIwUhiHjeGJNLsa2HlbYAaN84ENtcJ+YBWlXVj X-Received: by 10.181.11.193 with SMTP id ek1mr1583188wid.0.1415931136299; Thu, 13 Nov 2014 18:12:16 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.167 with SMTP id l7ls910800lal.43.gmail; Thu, 13 Nov 2014 18:12:16 -0800 (PST) X-Received: by 10.152.205.11 with SMTP id lc11mr3157992lac.34.1415931135989; Thu, 13 Nov 2014 18:12:15 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id c8si32581454lac.96.2014.11.13.18.12.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Nov 2014 18:12:15 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id s18so416862lam.21 for ; Thu, 13 Nov 2014 18:12:15 -0800 (PST) X-Received: by 10.112.87.65 with SMTP id v1mr5647014lbz.12.1415931135839; Thu, 13 Nov 2014 18:12:15 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp699720lbc; Thu, 13 Nov 2014 18:12:15 -0800 (PST) X-Received: by 10.66.237.145 with SMTP id vc17mr7022919pac.34.1415931134258; Thu, 13 Nov 2014 18:12:14 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si20158504pds.49.2014.11.13.18.12.13 for ; Thu, 13 Nov 2014 18:12:14 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935065AbaKNCML (ORCPT + 26 others); Thu, 13 Nov 2014 21:12:11 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:8351 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933518AbaKNCMJ (ORCPT ); Thu, 13 Nov 2014 21:12:09 -0500 Received: from 172.24.2.119 (EHLO szxeml413-hub.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AXB97770; Fri, 14 Nov 2014 10:12:07 +0800 (CST) Received: from localhost (10.177.27.142) by szxeml413-hub.china.huawei.com (10.82.67.152) with Microsoft SMTP Server id 14.3.158.1; Fri, 14 Nov 2014 10:11:43 +0800 From: Zhen Lei To: Mike Turquette , linux-kernel CC: Zefan Li , Xinwei Hu , "Tianhong Ding" , Kefeng Wang , Zhen Lei Subject: [PATCH 1/1] clk: delete a local variable's repeated assignment Date: Fri, 14 Nov 2014 10:10:40 +0800 Message-ID: <1415931040-9868-1-git-send-email-thunder.leizhen@huawei.com> X-Mailer: git-send-email 1.8.4.msysgit.0 MIME-Version: 1.0 X-Originating-IP: [10.177.27.142] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.546564F7.01ED, ss=1, re=0.001, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f32cef477ec5a3750e0dbbc51e0c1d3a Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: thunder.leizhen@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , It's the same to the next statement, "ret = clk->parent". I think compiler will optimize it, it's just not looking well. Signed-off-by: Zhen Lei --- drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 4896ae9..5307225 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1614,7 +1614,7 @@ static struct clk *__clk_init_parent(struct clk *clk) if (clk->num_parents == 1) { if (IS_ERR_OR_NULL(clk->parent)) - ret = clk->parent = __clk_lookup(clk->parent_names[0]); + clk->parent = __clk_lookup(clk->parent_names[0]); ret = clk->parent; goto out; }