aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-11-03 19:05:20 -0400
committerDavid S. Miller <davem@davemloft.net>2017-11-05 22:31:38 +0900
commit99feaafcdb566e8f032e7acc2a303713ad6bf196 (patch)
treed8a52562b8e15f3204c44097b7099eb2d1e169cd /include/net/dsa.h
parentliquidio: do not consider packets dropped by network stack as driver Rx dropped (diff)
downloadlinux-dev-99feaafcdb566e8f032e7acc2a303713ad6bf196.tar.xz
linux-dev-99feaafcdb566e8f032e7acc2a303713ad6bf196.zip
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 <vivien.didelot@savoirfairelinux.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 50e276dc4c01..fa1c21ab8092 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;