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

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
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment