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

Commit b0548cff authored by Nicolas Iooss's avatar Nicolas Iooss Committed by Doug Ledford
Browse files

i40iw: do not print unitialized variables in error message



i40iw_create_cqp() printed the contents of variables maj_err and min_err
in an error message before they could be initialized (by calling
dev->cqp_ops->cqp_create).

Signed-off-by: default avatarNicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent c5a81d11
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -600,8 +600,7 @@ static enum i40iw_status_code i40iw_create_cqp(struct i40iw_device *iwdev)
	cqp_init_info.scratch_array = cqp->scratch_array;
	status = dev->cqp_ops->cqp_init(dev->cqp, &cqp_init_info);
	if (status) {
		i40iw_pr_err("cqp init status %d maj_err %d min_err %d\n",
			     status, maj_err, min_err);
		i40iw_pr_err("cqp init status %d\n", status);
		goto exit;
	}
	status = dev->cqp_ops->cqp_create(dev->cqp, true, &maj_err, &min_err);