[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190601035709.85379-1-yuehaibing@huawei.com>
Date: Sat, 1 Jun 2019 03:57:09 +0000
From: YueHaibing <yuehaibing@...wei.com>
To: Thierry Reding <thierry.reding@...il.com>,
<u.kleine-koenig@...gutronix.de>,
<andriy.shevchenko@...ux.intel.com>, <thesven73@...il.com>
CC: YueHaibing <yuehaibing@...wei.com>, <linux-pwm@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] pwm: pca9685: Remove set but not used variable 'pwm'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/pwm/pwm-pca9685.c: In function 'pca9685_pwm_gpio_free':
drivers/pwm/pwm-pca9685.c:173:21: warning:
variable 'pwm' set but not used [-Wunused-but-set-variable]
It's not used since commit e926b12c611c ("pwm: Clear chip_data in pwm_put()")
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/pwm/pwm-pca9685.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/pwm/pwm-pca9685.c b/drivers/pwm/pwm-pca9685.c
index 567f5e2771c4..d16215c276bd 100644
--- a/drivers/pwm/pwm-pca9685.c
+++ b/drivers/pwm/pwm-pca9685.c
@@ -170,12 +170,10 @@ static void pca9685_pwm_gpio_set(struct gpio_chip *gpio, unsigned int offset,
static void pca9685_pwm_gpio_free(struct gpio_chip *gpio, unsigned int offset)
{
struct pca9685 *pca = gpiochip_get_data(gpio);
- struct pwm_device *pwm;
pca9685_pwm_gpio_set(gpio, offset, 0);
pm_runtime_put(pca->chip.dev);
mutex_lock(&pca->lock);
- pwm = &pca->chip.pwms[offset];
mutex_unlock(&pca->lock);
}
Powered by blists - more mailing lists