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

soc: fsl: dpio: remove redundant pointer 'priv'

Pointer 'priv' is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
variable 'priv' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>

authored by

Colin Ian King and committed by
Li Yang
afa86d26 f55f6122

-3
-3
drivers/soc/fsl/dpio/dpio-driver.c
··· 50 50 51 51 static int register_dpio_irq_handlers(struct fsl_mc_device *dpio_dev, int cpu) 52 52 { 53 - struct dpio_priv *priv; 54 53 int error; 55 54 struct fsl_mc_device_irq *irq; 56 55 cpumask_t mask; 57 - 58 - priv = dev_get_drvdata(&dpio_dev->dev); 59 56 60 57 irq = dpio_dev->irqs[0]; 61 58 error = devm_request_irq(&dpio_dev->dev,