vmxnet3: Remove always false conditional statement
param->rx_mini_pending is __u32 variable, it will never be less than zero. Signed-off-by: yuehaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ea217e874a
commit
4a4a52d49d
|
@ -555,10 +555,8 @@ vmxnet3_set_ringparam(struct net_device *netdev,
|
|||
}
|
||||
|
||||
if (VMXNET3_VERSION_GE_3(adapter)) {
|
||||
if (param->rx_mini_pending < 0 ||
|
||||
param->rx_mini_pending > VMXNET3_RXDATA_DESC_MAX_SIZE) {
|
||||
if (param->rx_mini_pending > VMXNET3_RXDATA_DESC_MAX_SIZE)
|
||||
return -EINVAL;
|
||||
}
|
||||
} else if (param->rx_mini_pending != 0) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue