ACPI: APD: remove redundant assignment to pointer clk
authorColin Ian King <colin.king@canonical.com>
Tue, 2 Jul 2019 13:10:29 +0000 (14:10 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Jul 2019 11:02:16 +0000 (13:02 +0200)
The pointer clk is being initialized with a value that is never
read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_apd.c

index ff47317d8ef12f92e67fd0077bfe87cc0550f9c0..7cd0c9ac71ea2c10803a37db5e37550f3571094c 100644 (file)
@@ -57,7 +57,7 @@ struct apd_private_data {
 static int acpi_apd_setup(struct apd_private_data *pdata)
 {
        const struct apd_device_desc *dev_desc = pdata->dev_desc;
-       struct clk *clk = ERR_PTR(-ENODEV);
+       struct clk *clk;
 
        if (dev_desc->fixed_clk_rate) {
                clk = clk_register_fixed_rate(&pdata->adev->dev,