Skip to content

Commit

Permalink
ALSA/hda: intel-sdw-acpi: cleanup sdw_intel_scan_controller
Browse files Browse the repository at this point in the history
Remove unnecessary initialization and un-shadow return code.

Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Link: https://patch.msgid.link/[email protected]
  • Loading branch information
plbossart authored and tiwai committed Oct 15, 2024
1 parent 1e9c708 commit 9d94c58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/hda/intel-sdw-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ sdw_intel_scan_controller(struct sdw_intel_acpi_info *info)
return -EINVAL;

/* Found controller, find links supported */
count = 0;
ret = fwnode_property_read_u8_array(acpi_fwnode_handle(adev),
"mipi-sdw-master-count", &count, 1);

Expand All @@ -82,7 +81,7 @@ sdw_intel_scan_controller(struct sdw_intel_acpi_info *info)
if (ret) {
dev_err(&adev->dev,
"Failed to read mipi-sdw-master-count: %d\n", ret);
return -EINVAL;
return ret;
}

/* Check count is within bounds */
Expand Down

0 comments on commit 9d94c58

Please sign in to comment.