summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorChristos Gkekas <chris.gekas@gmail.com>2017-10-08 23:46:47 +0100
committerDavid S. Miller <davem@davemloft.net>2017-10-08 21:21:02 -0700
commitc49c777f9c87749b73bc888f097f8a4178382449 (patch)
tree149b0b164970eca4bc227b0d003db987265f9d05 /drivers/net
parentc778c32118167adcfe6b40063c49bfeac6bc1cf1 (diff)
downloadtalos-obmc-linux-c49c777f9c87749b73bc888f097f8a4178382449.tar.gz
talos-obmc-linux-c49c777f9c87749b73bc888f097f8a4178382449.zip
qed: Delete redundant check on dcb_app priority
dcb_app priority is unsigned thus checking whether it is less than zero is redundant. Signed-off-by: Christos Gkekas <chris.gekas@gmail.com> Acked-By: Tomer Tayar <Tomer.Tayar@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_dcbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_dcbx.c b/drivers/net/ethernet/qlogic/qed/qed_dcbx.c
index 8f6ccc0c39e5..6e15d3c10ebf 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_dcbx.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_dcbx.c
@@ -2308,7 +2308,7 @@ static int qed_dcbnl_ieee_setapp(struct qed_dev *cdev, struct dcb_app *app)
DP_VERBOSE(hwfn, QED_MSG_DCB, "selector = %d protocol = %d pri = %d\n",
app->selector, app->protocol, app->priority);
- if (app->priority < 0 || app->priority >= QED_MAX_PFC_PRIORITIES) {
+ if (app->priority >= QED_MAX_PFC_PRIORITIES) {
DP_INFO(hwfn, "Invalid priority %d\n", app->priority);
return -EINVAL;
}
OpenPOWER on IntegriCloud