[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221208102521.rqbw6d4wqipal5qy@lion.mk-sys.cz>
Date: Thu, 8 Dec 2022 11:25:21 +0100
From: Michal Kubecek <mkubecek@...e.cz>
To: Jesse Brandeburg <jesse.brandeburg@...el.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH ethtool v2 04/13] ethtool: commonize power related strings
On Wed, Dec 07, 2022 at 05:11:13PM -0800, Jesse Brandeburg wrote:
> When looking into the implementation of the qsfp.h file, I found three
> pieces of code all doing the same thing and using similar, but bespoke
> strings.
>
> Just make one set of strings for all three places to use. I made an
> effort to see if there was any size change due to making this change but
> I see no difference.
>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@...el.com>
Acked-by: Michal Kubecek <mkubecek@...e.cz>
Perhaps you might go one step further and replace the whole repeating
sd->rx_power_type ? rx_power_average : rx_power_oma
pattern with an inline helper.
Michal
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists