diff options
author | Puneeth Prabhu <puneethx.prabhu@intel.com> | 2017-12-06 06:04:06 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-12-06 12:47:16 -0500 |
commit | 45a6008bfcdc3e620dcf1b2330766345097afe9c (patch) | |
tree | c92a99825cbee1815a9c9389225907d276eebc1f | |
parent | 0fb02ba36d01a04dab03c0a424607844ef4dadbf (diff) |
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>
-rw-r--r-- | sound/soc/codecs/hdac_hdmi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index b706547c46d5..68a4a6b4e68e 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c | |||
@@ -1465,10 +1465,7 @@ static int hdac_hdmi_parse_and_map_nid(struct hdac_ext_device *edev, | |||
1465 | return -EINVAL; | 1465 | return -EINVAL; |
1466 | } | 1466 | } |
1467 | 1467 | ||
1468 | hdev->num_nodes = num_nodes; | 1468 | for (i = 0; i < num_nodes; i++, nid++) { |
1469 | hdev->start_nid = nid; | ||
1470 | |||
1471 | for (i = 0; i < hdev->num_nodes; i++, nid++) { | ||
1472 | unsigned int caps; | 1469 | unsigned int caps; |
1473 | unsigned int type; | 1470 | unsigned int type; |
1474 | 1471 | ||
@@ -1494,8 +1491,6 @@ static int hdac_hdmi_parse_and_map_nid(struct hdac_ext_device *edev, | |||
1494 | } | 1491 | } |
1495 | } | 1492 | } |
1496 | 1493 | ||
1497 | hdev->end_nid = nid; | ||
1498 | |||
1499 | if (!hdmi->num_pin || !hdmi->num_cvt) { | 1494 | if (!hdmi->num_pin || !hdmi->num_cvt) { |
1500 | ret = -EIO; | 1495 | ret = -EIO; |
1501 | goto free_widgets; | 1496 | goto free_widgets; |