summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authoryu kuai <yukuai3@huawei.com>2020-01-20 14:51:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-24 10:36:53 +0300
commit50b93369668bb5e0f537ea8eb1ecf3fc702b5474 (patch)
tree8f2938c6a26a942150af69023c76be2badfe4124 /fs
parentadf4ab6d831271c04506af47b081c0a298a8d551 (diff)
downloadlinux-50b93369668bb5e0f537ea8eb1ecf3fc702b5474.tar.xz
pwm: Remove set but not set variable 'pwm'
[ Upstream commit 9871abffc81048e20f02e15d6aa4558a44ad53ea ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/pwm/pwm-pca9685.c: In function ‘pca9685_pwm_gpio_free’: drivers/pwm/pwm-pca9685.c:162:21: warning: variable ‘pwm’ set but not used [-Wunused-but-set-variable] It is never used, and so can be removed. In that case, hold and release the lock 'pca->lock' can be removed since nothing will be done between them. Fixes: e926b12c611c ("pwm: Clear chip_data in pwm_put()") Signed-off-by: yu kuai <yukuai3@huawei.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions