Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751970AbdHGXNp (ORCPT ); Mon, 7 Aug 2017 19:13:45 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:35120 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751875AbdHGXNo (ORCPT ); Mon, 7 Aug 2017 19:13:44 -0400 From: Vivien Didelot To: Egil Hjelmeland , andrew@lunn.ch, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Egil Hjelmeland Subject: Re: [PATCH net-next] net: dsa: lan9303: Only allocate 3 ports In-Reply-To: <20170807222221.28963-1-privat@egil-hjelmeland.no> References: <20170807222221.28963-1-privat@egil-hjelmeland.no> Date: Mon, 07 Aug 2017 19:10:39 -0400 Message-ID: <87wp6fm0sw.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 435 Lines: 11 Egil Hjelmeland writes: > 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: Vivien Didelot