Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99feaafc authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller
Browse files

net: dsa: make switch index unsigned



Define the DSA switch index as an unsigned int, because it will never be
less than 0.

Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 95248461
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ struct dsa_switch {
	 * Parent switch tree, and switch index.
	 */
	struct dsa_switch_tree	*dst;
	int			index;
	unsigned int		index;

	/* Listener for switch fabric events */
	struct notifier_block	nb;