Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c49c777f authored by Christos Gkekas's avatar Christos Gkekas Committed by David S. Miller
Browse files

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: default avatarChristos Gkekas <chris.gekas@gmail.com>
Acked-By: default avatarTomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c778c321
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}