提交 99feaafc 编写于 作者: V Vivien Didelot 提交者: 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: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册