1
0
Fork 0

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: Puneeth Prabhu <puneethx.prabhu@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
hifive-unleashed-5.1
Puneeth Prabhu 2017-12-06 16:34:06 +05:30 committed by Mark Brown
parent 0fb02ba36d
commit 45a6008bfc
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 6 deletions

View File

@ -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;