Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752068AbdHGW1b (ORCPT ); Mon, 7 Aug 2017 18:27:31 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36630 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751829AbdHGW1a (ORCPT ); Mon, 7 Aug 2017 18:27:30 -0400 Subject: Re: [PATCH net-next] net: dsa: lan9303: Only allocate 3 ports To: Egil Hjelmeland , andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170807222221.28963-1-privat@egil-hjelmeland.no> From: Florian Fainelli Message-ID: <99b1379c-3af4-c09d-1f86-041da58f615b@gmail.com> Date: Mon, 7 Aug 2017 15:27:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170807222221.28963-1-privat@egil-hjelmeland.no> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 430 Lines: 12 On 08/07/2017 03:22 PM, Egil Hjelmeland wrote: > Save 2628 bytes on arm eabi by allocate only the required 3 ports. > > Now that ds->num_ports is correct: In net/dsa/tag_lan9303.c > eliminate duplicate LAN9303_MAX_PORTS, use ds->num_ports. > (Matching the pattern of other net/dsa/tag_xxx.c files.) > > Signed-off-by: Egil Hjelmeland Reviewed-by: Florian Fainelli -- Florian