diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2024-10-01 09:06:08 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-10-15 07:53:55 +0200 |
commit | 9d94c58316bc1c40c21d284dfbe9358b223eadd1 (patch) | |
tree | 40bf24cf897b069f0f6ae45117b7bad3271ed32b /sound/hda | |
parent | ALSA: hda/tas2781: Add new quirk for Lenovo, ASUS, Dell projects (diff) | |
download | linux-9d94c58316bc1c40c21d284dfbe9358b223eadd1.tar.xz linux-9d94c58316bc1c40c21d284dfbe9358b223eadd1.zip |
ALSA/hda: intel-sdw-acpi: cleanup sdw_intel_scan_controller
Remove unnecessary initialization and un-shadow return code.
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241001070611.63288-2-yung-chuan.liao@linux.intel.com
Diffstat (limited to 'sound/hda')
-rw-r--r-- | sound/hda/intel-sdw-acpi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/hda/intel-sdw-acpi.c b/sound/hda/intel-sdw-acpi.c index 04d6b6beabca..770dabe0124f 100644 --- a/sound/hda/intel-sdw-acpi.c +++ b/sound/hda/intel-sdw-acpi.c @@ -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); @@ -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 */ |