Commit 4a4a52d4 authored by yuehaibing's avatar yuehaibing Committed by David S. Miller

vmxnet3: Remove always false conditional statement

param->rx_mini_pending is __u32 variable, it will never
be less than zero.
Signed-off-by: default avataryuehaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ea217e87
...@@ -555,10 +555,8 @@ vmxnet3_set_ringparam(struct net_device *netdev, ...@@ -555,10 +555,8 @@ vmxnet3_set_ringparam(struct net_device *netdev,
} }
if (VMXNET3_VERSION_GE_3(adapter)) { if (VMXNET3_VERSION_GE_3(adapter)) {
if (param->rx_mini_pending < 0 || if (param->rx_mini_pending > VMXNET3_RXDATA_DESC_MAX_SIZE)
param->rx_mini_pending > VMXNET3_RXDATA_DESC_MAX_SIZE) {
return -EINVAL; return -EINVAL;
}
} else if (param->rx_mini_pending != 0) { } else if (param->rx_mini_pending != 0) {
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment