Searched hist:"6663 c01eca1a250374a898f19b60ec01859a3d0b" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_stats.c | diff 6663c01eca1a250374a898f19b60ec01859a3d0b Wed Apr 12 07:47:36 CDT 2023 Vladimir Oltean <vladimir.oltean@nxp.com> net: mscc: ocelot: strengthen type of "int i" in ocelot_stats.c
The "int i" used to index the struct ocelot_stat_layout array actually has a specific type: enum ocelot_stat. Use it, so that the WARN() comment from ocelot_prepare_stats_regions() makes more sense.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|