Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8994208imu; Sat, 29 Dec 2018 08:05:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/UcD6y51K/ARsUiJeJHDaFJvFK+E1XDNJBgjeDgi4odjUN42ZVttqNHzbGpieZvDV+J1cV7 X-Received: by 2002:a62:6799:: with SMTP id t25mr32091260pfj.139.1546099543606; Sat, 29 Dec 2018 08:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546099543; cv=none; d=google.com; s=arc-20160816; b=ipox72RIUkuZn3DhIXZ9cwZo470kggsQV40pYkStKq5gOzgR9FVgudis/cQplXWpwx iNYZ2oSsTzaPT1ECMS037qXryG6cWLk97GdKkMTEhNfbmcjIPtBc/6dnReDibmEw3SIM dLuW+2/nHWbcBJcvc2T7kT/EZ214jza1HKdV02R7DzBJifBqqJ5ugxPQoUC+LxH++c09 99oayVAggv1XjaXZcze5pqz6fk4fHdWikIE6HNLlcSlCzVg1i2S1S1ocaO9vFPfQ/hR2 ZfwQHv/lcRCMlwuJ0T+pgEOYUs9JC/ldm979rUmkURp7RiLnRymWsT76rDd+MFv4xPhJ ru0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=OgYgnEwGHyuPLiXkFTBxxWTM/RMFhzsJh0OKLe2nivY=; b=Ob9VLxATvyB2dyVlCSLSHo+p+EZpcovdTgWDJ6FU7d4dpQH/9mfYAUa74G8wsKhH5L HhrNsh3aH2iRaYJz7jD2ja5WKYZxmY8pQOHOk+O06btUlslZvLdA+xgeYeb8+nQQ7EUA BuPeob7H/M6BFde88CXb6sCun+sMz+r47zD+tMWOOJs2OOWUy4qda2cO7uzKRL9RhF/b inAxg/5+mN23ziInL1lRhMZl0E1VVtNUtPxERGHBgO0HSPpdbRqtY3NQWEfFD48Lj2VO b0VW4y2zJhCZEczoyOJve/NDD1El8CK1SpdXncnyaxkpeATKGIlaDWCc8Jwk+MGBAyqx xvFw== 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 v5si39903337pgg.1.2018.12.29.08.05.27; Sat, 29 Dec 2018 08:05:43 -0800 (PST) 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 S1726201AbeL2FK5 (ORCPT + 99 others); Sat, 29 Dec 2018 00:10:57 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:40098 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725923AbeL2FK5 (ORCPT ); Sat, 29 Dec 2018 00:10:57 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E71461451513B; Fri, 28 Dec 2018 21:10:55 -0800 (PST) Date: Fri, 28 Dec 2018 21:10:53 -0800 (PST) Message-Id: <20181228.211053.848330303302862567.davem@davemloft.net> To: peng.hao2@zte.com.cn Cc: qiang.zhao@nxp.com, leoyang.li@nxp.com, linux-kernel@vger.kernel.org, wen.yang99@zte.com.cn, julia.lawall@lip6.fr, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v3] soc/fsl/qe: fix err handling of ucc_of_parse_tdm From: David Miller In-Reply-To: <1545812789-77690-1-git-send-email-peng.hao2@zte.com.cn> References: <1545812789-77690-1-git-send-email-peng.hao2@zte.com.cn> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 28 Dec 2018 21:10:56 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Hao Date: Wed, 26 Dec 2018 16:26:29 +0800 > diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c > index 839fa77..8ce4921f 100644 > --- a/drivers/net/wan/fsl_ucc_hdlc.c > +++ b/drivers/net/wan/fsl_ucc_hdlc.c > @@ -1057,6 +1057,27 @@ static const struct net_device_ops uhdlc_ops = { > .ndo_tx_timeout = uhdlc_tx_timeout, > }; > > +static int ucc_get_resource_by_nodename(char *name, struct resource *res) > +{ ... > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + return 0; This assignment to 'res' doesn't do what you think it does. The caller never sees the value you compute.