Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: s3c24xx: remove unused ‘cdata’

In s3c24xx_dma_get_phy(), variable ‘cdata’ is initialized but never used, which
leads to warning with W=1. Removing this make pdata unused.

drivers/dma/s3c24xx-dma.c: In function ‘s3c24xx_dma_get_phy’:
drivers/dma/s3c24xx-dma.c:293:30: warning: variable ‘cdata’ set but not used [-Wunused-but-set-variable]
struct s3c24xx_dma_channel *cdata;

So remove both of them.

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

-5
-5
drivers/dma/s3c24xx-dma.c
··· 289 289 struct s3c24xx_dma_phy *s3c24xx_dma_get_phy(struct s3c24xx_dma_chan *s3cchan) 290 290 { 291 291 struct s3c24xx_dma_engine *s3cdma = s3cchan->host; 292 - const struct s3c24xx_dma_platdata *pdata = s3cdma->pdata; 293 - struct s3c24xx_dma_channel *cdata; 294 292 struct s3c24xx_dma_phy *phy = NULL; 295 293 unsigned long flags; 296 294 int i; 297 295 int ret; 298 - 299 - if (s3cchan->slave) 300 - cdata = &pdata->channels[s3cchan->id]; 301 296 302 297 for (i = 0; i < s3cdma->pdata->num_phy_channels; i++) { 303 298 phy = &s3cdma->phy_chans[i];