mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
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>
This commit is contained in:
parent
6fbc7275c7
commit
b244883ca8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user