Skip to content

Commit

Permalink
spi: spi-gpio: Remove set but not used variable 'pdata'
Browse files Browse the repository at this point in the history
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/spi/spi-gpio.c: In function 'spi_gpio_remove':
drivers/spi/spi-gpio.c:450:33: warning:
 variable 'pdata' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
YueHaibing authored and Mark Brown committed Sep 6, 2018
1 parent 7c5d8a2 commit 48c29d0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,8 @@ static int spi_gpio_probe(struct platform_device *pdev)
static int spi_gpio_remove(struct platform_device *pdev)
{
struct spi_gpio *spi_gpio;
struct spi_gpio_platform_data *pdata;

spi_gpio = platform_get_drvdata(pdev);
pdata = dev_get_platdata(&pdev->dev);

/* stop() unregisters child devices too */
spi_bitbang_stop(&spi_gpio->bitbang);
Expand Down

0 comments on commit 48c29d0

Please sign in to comment.