Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp667029ybl; Fri, 31 Jan 2020 05:59:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwbvb62D4RgcXAD26aQEK4H68Ke0KwlpO/YuorDVCfaIiH/YunuOa+XGUFfmhTL1ezEEigC X-Received: by 2002:a54:4e96:: with SMTP id c22mr6557172oiy.110.1580479159665; Fri, 31 Jan 2020 05:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580479159; cv=none; d=google.com; s=arc-20160816; b=DZtOMQMsxMApfeKhT4IHR1ORv1ibVbt632y5BckXWG7MkbIXHz/1IVJZnNH2d8SQG5 sQZnHYbrQ5zhUQzEpCXqKL+5b/QA+f3+p7nZ7g5Zf9spL7KAugwVyYoeOlFOdxQWj9LM OBMwLonDrExM0Y566brcnF1ktlzNluiMBoXpspgi8CYus1YFNONYZLC3j8y8mjT08Xs2 WNEdWlgBbzwmK87qhxetD69U0quZF2Hir9xoUKZKoPL5qt6Aw8X4UngtEyAg/M0cWmkS thu7kwrp+9h8TWu339cwdnbEH1oCu+BBGtAObnmBsvZEAbIppqjZT8txm8ucGZzggVpZ UQhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=M1F71jvBqrpDNfAxNP559L2v7vOR6DOGsr1UJQiyE0E=; b=QHSJCOUofi01iIW1YfM3L3tm74Ahf+sS10fUcgNX5i+RBiCEIXHCYuQOdTA4lEzLPF adMQHoYlofQCMqwiuZm5APp3+qbOpGT4rwGXd6cbtpsrgOx6jUrStmH3qH/iqwIXlbVA tDNRXPoHWm3MprAjNRqx0JWTp0GwfT28O3QLzNeTaLA9Y1mEeJ2UzJFoKKjwJUQxyz29 Uez+kJu5cb5PiIGuciLjuPgi/RcMJraRiy1V2Zagr8ttGGjRntIZ31w8bwKTnSP5g9BX kz53MTrd5+W9fcgIAUIN16pTtMg99ce9E4P67jvrEDljkecV3DTrrCuO/iTXE0GV2BBo WBgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=AQOn2fyb; 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 l139si4414642oih.233.2020.01.31.05.59.07; Fri, 31 Jan 2020 05:59:19 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=AQOn2fyb; 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 S1728881AbgAaN6M (ORCPT + 99 others); Fri, 31 Jan 2020 08:58:12 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:60002 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728500AbgAaN6M (ORCPT ); Fri, 31 Jan 2020 08:58:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=M1F71jvBqrpDNfAxNP559L2v7vOR6DOGsr1UJQiyE0E=; b=AQOn2fybqbDTF0u5okJfCrxC6z 5g8Wyei/0tS7qnYFWdLg5ZpWmKOUaVwF//RM6mbKQfZzYeDv7d6np87N5VvOavsAQWgijt+vD6IKP Dx5EI3JKfG7LoNltgG/F4XYL0TFjRN76iXfrUfTrFM0kX5BgRJw0uHXl5UrCcYWOqC3A=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1ixWnq-0007SO-NR; Fri, 31 Jan 2020 14:57:46 +0100 Date: Fri, 31 Jan 2020 14:57:46 +0100 From: Andrew Lunn To: Dan Carpenter Cc: Greg Kroah-Hartman , Ajay Gupta , "David S. Miller" , "Rafael J. Wysocki" , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , Steve Glendinning , Jassi Brar , Ilias Apalodimas , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Dmitry Torokhov , Andy Shevchenko , Sakari Ailus , Heikki Krogerus , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net] device property: change device_get_phy_mode() to prevent signedess bugs Message-ID: <20200131135746.GF9639@lunn.ch> References: <20200131045953.wbj66jkvijnmf5s2@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200131045953.wbj66jkvijnmf5s2@kili.mountain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > diff --git a/drivers/net/ethernet/apm/xgene-v2/main.c b/drivers/net/ethernet/apm/xgene-v2/main.c > index c48f60996761..706602918dd1 100644 > --- a/drivers/net/ethernet/apm/xgene-v2/main.c > +++ b/drivers/net/ethernet/apm/xgene-v2/main.c > @@ -15,7 +15,7 @@ static int xge_get_resources(struct xge_pdata *pdata) > { > struct platform_device *pdev; > struct net_device *ndev; > - int phy_mode, ret = 0; > + int ret = 0; > struct resource *res; > struct device *dev; Hi Dan DaveM likes reverse christmas tree. So you need to move ret later to keep the tree. Apart from that: Reviewed-by: Andrew Lunn Andrew