Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753195AbdCQDec convert rfc822-to-8bit (ORCPT ); Thu, 16 Mar 2017 23:34:32 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:47141 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751629AbdCQDea (ORCPT ); Thu, 16 Mar 2017 23:34:30 -0400 X-SpamFilter-By: BOX Solutions SpamTrap 5.56 with qID v2H2xhCv013937, This message is accepted by code: ctloc85258 From: Hayes Wang To: David Laight , "netdev@vger.kernel.org" CC: nic_swsd , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" Subject: RE: [PATCH net-next] r8152: simply the arguments Thread-Topic: [PATCH net-next] r8152: simply the arguments Thread-Index: AQHSnh553q+yX4lzdkisCxYWJOK6f6GXALWAgAFWZyA= Date: Fri, 17 Mar 2017 02:59:42 +0000 Message-ID: <0835B3720019904CB8F7AA43166CEEB201A32FCB@RTITMBSV06.realtek.com.tw> References: <1394712342-15778-253-Taiwan-albertk@realtek.com> <063D6719AE5E284EB5DD2968C1650D6DCFFB29DA@AcuExch.aculab.com> In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6DCFFB29DA@AcuExch.aculab.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.177.120] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 410 Lines: 14 David Laight [mailto:David.Laight@ACULAB.COM] > Sent: Thursday, March 16, 2017 10:28 PM [...] > If you are really lucky the compiler will optimise it away. > Otherwise it will generate another local variable and possibly > a register spill to stack. However, I could reduce the time for calculating the address, because I only calculate it once and save the result to a variable. Right? Best Regards, Hayes