Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3685237ybl; Tue, 21 Jan 2020 05:20:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzq390F1gba/IEFi98MlXNQeOVBE0t+9sp5OUbt4LKZrWKYO8oyNxh/lgGoVy9O8EDzKx3e X-Received: by 2002:aca:4183:: with SMTP id o125mr2778450oia.125.1579612843805; Tue, 21 Jan 2020 05:20:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579612843; cv=none; d=google.com; s=arc-20160816; b=z/1g3H6/dZpQsOi9qTHlmlCQGgbP1gskNNzNsHJdi6GRITfuSimyVslmWnBbqVduQQ g0DtSIEu1xdo3WWYLduPCgT0+Czno7kRH52ctdRGHESWafZzWav910HcQU3kuOD1Nqic 7ocKUvOo5Zvsd6QNnMqmfdOR3TiaXmJ4LddYtnE6PoqPkCHlxjWI8+YwLROQ1hgzu5J+ WiL1/YQU5aeLnyKhLA2CYaT3iwppk88HzYcUh5b19ku8ONpdL/90LyBoZOA9+St48U7D LngW/vE4tW86wW93a2OIy1O/VX1WN3oWdzm9sej84CR/voQO3gE7HMkHm34m/bCpiuWl 6exA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=a9cOhwpxh0Tm4L2/TTGFHu8oE4xc256owHakNCh8H1s=; b=R6EQ5dPOeNN0qkETwpJlsLWEdo660dVjXPowhmxBMcrEj4Bf09DrsiyxkFLXAH2T0g tWOn2wKXxeDbYwj26VRb2YSPlzfVnOyVePD5JT304azovmWG/S+lpJoy7WXBJ0EotJq1 MRh30I95Gv9C6c+2/e+mOFMpOy/PojqTkS6jHAMvi/HsTzSTH10IsmR2ZHC7sXl87n69 i3Z/kUVaJaAST9oxgKKogMOLII8M8Zk9B041WRvQfERH21cYBaC/PdYIiLQHZE39fA0e 0nRAAlouLiH9PLODJY0L9M8ih2EswIOyD9kpMwTIlqa3R2ZCWVG0lTBAaO8+QpmYIFg+ jorQ== 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 x3si20108074oic.251.2020.01.21.05.20.31; Tue, 21 Jan 2020 05:20: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 S1728898AbgAUNTe convert rfc822-to-8bit (ORCPT + 99 others); Tue, 21 Jan 2020 08:19:34 -0500 Received: from rtits2.realtek.com ([211.75.126.72]:55649 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgAUNTe (ORCPT ); Tue, 21 Jan 2020 08:19:34 -0500 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID 00LDJKrP014884, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCAS11.realtek.com.tw[172.21.6.12]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id 00LDJKrP014884 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jan 2020 21:19:21 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTITCAS11.realtek.com.tw (172.21.6.12) with Microsoft SMTP Server (TLS) id 14.3.468.0; Tue, 21 Jan 2020 21:19:20 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Tue, 21 Jan 2020 21:19:20 +0800 Received: from RTEXMB04.realtek.com.tw ([fe80::d9c5:a079:495e:b999]) by RTEXMB04.realtek.com.tw ([fe80::d9c5:a079:495e:b999%6]) with mapi id 15.01.1779.005; Tue, 21 Jan 2020 21:19:20 +0800 From: Hayes Wang To: Joe Perches , David Miller CC: "netdev@vger.kernel.org" , nic_swsd , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "pmalani@chromium.org" , "grundler@chromium.org" Subject: RE: [PATCH net 2/9] r8152: reset flow control patch when linking on for RTL8153B Thread-Topic: [PATCH net 2/9] r8152: reset flow control patch when linking on for RTL8153B Thread-Index: AQHV0FhJcCUlEIvyF0ab5Vs8olnDhKf0jRWAgAAB4YCAAInrgA== Date: Tue, 21 Jan 2020 13:19:19 +0000 Message-ID: <49ab41a04ecf40c3baeed36746166a98@realtek.com> References: <1394712342-15778-338-Taiwan-albertk@realtek.com> <1394712342-15778-340-Taiwan-albertk@realtek.com> <20200121.135439.1619270282552230019.davem@davemloft.net> In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.177.214] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joe Perches [mailto:joe@perches.com] > Sent: Tuesday, January 21, 2020 9:01 PM > To: David Miller; Hayes Wang [...] > > > static int rtl8153_enable(struct r8152 *tp) > > > { > > > + u32 ocp_data; > > > if (test_bit(RTL8152_UNPLUG, &tp->flags)) > > > return -ENODEV; > > > > > > > Please put an empty line after the local variable declarations. > > Local scoping is generally better. > > Perhaps declare ocp_data inside the if branch > where it's used. OK. I would move it. Best Regards, Hayes