net: mvpp2: cls: Remove unnessesary check in mvpp2_ethtool_cls_rule_ins
authorYueHaibing <yuehaibing@huawei.com>
Wed, 29 May 2019 02:59:06 +0000 (10:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 18:46:59 +0000 (11:46 -0700)
commit5080e28d94a27e182e323854a9ba2a0718e9e3bf
tree31d04de248400d75fab58b6ae1e7cadebbfb35eb
parent9737070c6823dc23a2a53fbffb3ebcceee9c96c1
net: mvpp2: cls: Remove unnessesary check in mvpp2_ethtool_cls_rule_ins

Fix smatch warning:

drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c:1236
 mvpp2_ethtool_cls_rule_ins() warn: unsigned 'info->fs.location' is never less than zero.

'info->fs.location' is u32 type, never less than zero.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c