projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea217e8
)
vmxnet3: Remove always false conditional statement
author
yuehaibing
<yuehaibing@huawei.com>
Wed, 8 Jan 2020 14:08:22 +0000
(22:08 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 9 Jan 2020 00:07:21 +0000
(16:07 -0800)
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>
drivers/net/vmxnet3/vmxnet3_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/vmxnet3/vmxnet3_ethtool.c
b/drivers/net/vmxnet3/vmxnet3_ethtool.c
index 0a38c76688abd6b7655a63357e69177277cc4ad3..1e4b9ba7098353fda842a55c454af4c1de3a0c9e 100644
(file)
--- a/
drivers/net/vmxnet3/vmxnet3_ethtool.c
+++ b/
drivers/net/vmxnet3/vmxnet3_ethtool.c
@@
-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;
}