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

Unverified Commit 45a6008b authored by Puneeth Prabhu's avatar Puneeth Prabhu Committed by Mark Brown
Browse files

ASoC: hdac_hdmi: Remove redundant assignments



Assignments for start_nid, end_nid and num_nodes of hdac_device
structure are already done in init.  So, remove the redundant
assignments.

Signed-off-by: default avatarPuneeth Prabhu <puneethx.prabhu@intel.com>
Signed-off-by: default avatarGuneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0fb02ba3
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1465,10 +1465,7 @@ static int hdac_hdmi_parse_and_map_nid(struct hdac_ext_device *edev,
		return -EINVAL;
	}

	hdev->num_nodes = num_nodes;
	hdev->start_nid = nid;

	for (i = 0; i < hdev->num_nodes; i++, nid++) {
	for (i = 0; i < num_nodes; i++, nid++) {
		unsigned int caps;
		unsigned int type;

@@ -1494,8 +1491,6 @@ static int hdac_hdmi_parse_and_map_nid(struct hdac_ext_device *edev,
		}
	}

	hdev->end_nid = nid;

	if (!hdmi->num_pin || !hdmi->num_cvt) {
		ret = -EIO;
		goto free_widgets;