mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
ACPI / LPSS: Remove redundant initialization of clk
The pointer clk is being initialized to ERR_PTR(-ENODEV) however this value is never read before it is set to clk_data->clk. Thus the initialization is redundant and can be mored. Cleans up clang warning: Value stored to 'clk' during its initialization is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
39dae59d66
commit
71c50dbe1f
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ static int register_device_clock(struct acpi_device *adev,
|
|||
{
|
||||
const struct lpss_device_desc *dev_desc = pdata->dev_desc;
|
||||
const char *devname = dev_name(&adev->dev);
|
||||
struct clk *clk = ERR_PTR(-ENODEV);
|
||||
struct clk *clk;
|
||||
struct lpss_clk_data *clk_data;
|
||||
const char *parent, *clk_name;
|
||||
void __iomem *prv_base;
|
||||
|
|
Loading…
Reference in a new issue