diff options
author | Christos Gkekas <chris.gekas@gmail.com> | 2017-10-08 23:46:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-08 21:21:02 -0700 |
commit | c49c777f9c87749b73bc888f097f8a4178382449 (patch) | |
tree | 149b0b164970eca4bc227b0d003db987265f9d05 /drivers/net | |
parent | c778c32118167adcfe6b40063c49bfeac6bc1cf1 (diff) | |
download | talos-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.c | 2 |
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; } |