summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpi_apd.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-02 16:10:29 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-07-03 14:02:16 +0300
commitb244883ca89c88fc250ba440937a3f1b28b258ff (patch)
tree68d509d61cdf6000b8f94622398ddf41b4b25849 /drivers/acpi/acpi_apd.c
parent6fbc7275c7a9ba97877050335f290341a1fd8dbf (diff)
downloadlinux-b244883ca89c88fc250ba440937a3f1b28b258ff.tar.xz
ACPI: APD: remove redundant assignment to pointer clk
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>
Diffstat (limited to 'drivers/acpi/acpi_apd.c')
-rw-r--r--drivers/acpi/acpi_apd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c
index ff47317d8ef1..7cd0c9ac71ea 100644
--- a/drivers/acpi/acpi_apd.c
+++ b/drivers/acpi/acpi_apd.c
@@ -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,