Skip to content

Commit

Permalink
spi: s3c64xx: remove redundant pointer sci
Browse files Browse the repository at this point in the history
The pointer sci is assigned but never read, hence it is redundant
and can be removed. Cleans up clang warning:

drivers/spi/spi-s3c64xx.c:791:2: warning: Value stored to 'sci' is
never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Colin Ian King authored and broonie committed Nov 3, 2017
1 parent 2bd6bf0 commit 4132b8b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/spi/spi-s3c64xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,6 @@ static int s3c64xx_spi_setup(struct spi_device *spi)
{
struct s3c64xx_spi_csinfo *cs = spi->controller_data;
struct s3c64xx_spi_driver_data *sdd;
struct s3c64xx_spi_info *sci;
int err;

sdd = spi_master_get_devdata(spi->master);
Expand Down Expand Up @@ -788,8 +787,6 @@ static int s3c64xx_spi_setup(struct spi_device *spi)
spi_set_ctldata(spi, cs);
}

sci = sdd->cntrlr_info;

pm_runtime_get_sync(&sdd->pdev->dev);

/* Check if we can provide the requested rate */
Expand Down

0 comments on commit 4132b8b

Please sign in to comment.