From: Vivien Didelot Date: Fri, 3 Nov 2017 23:05:20 +0000 (-0400) Subject: net: dsa: make switch index unsigned X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=99feaafcdb566e8f032e7acc2a303713ad6bf196;p=linux.git 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: Vivien Didelot Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/include/net/dsa.h b/include/net/dsa.h index 50e276dc4c013..fa1c21ab80929 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -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;