Commit 408a5806 authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Anas Nashif
Browse files

net: ethernet: mgmt: Fix Qav deltaBandwith check



As the value type is unsigned int, it cannot be <0.

Coverity-CID: 187063
Fixes #9002

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 7f0432a1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -99,8 +99,7 @@ static int ethernet_set_config(u32_t mgmt_request,
			return -ENOTSUP;
		}

		if (params->qav_queue_param.delta_bandwidth < 0
		    || params->qav_queue_param.delta_bandwidth > 100) {
		if (params->qav_queue_param.delta_bandwidth > 100) {
			return -EINVAL;
		}