Commit afa86d26 authored by Colin Ian King's avatar Colin Ian King Committed by Li Yang

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
parent f55f6122
...@@ -50,13 +50,10 @@ static void unregister_dpio_irq_handlers(struct fsl_mc_device *dpio_dev) ...@@ -50,13 +50,10 @@ static void unregister_dpio_irq_handlers(struct fsl_mc_device *dpio_dev)
static int register_dpio_irq_handlers(struct fsl_mc_device *dpio_dev, int cpu) static int register_dpio_irq_handlers(struct fsl_mc_device *dpio_dev, int cpu)
{ {
struct dpio_priv *priv;
int error; int error;
struct fsl_mc_device_irq *irq; struct fsl_mc_device_irq *irq;
cpumask_t mask; cpumask_t mask;
priv = dev_get_drvdata(&dpio_dev->dev);
irq = dpio_dev->irqs[0]; irq = dpio_dev->irqs[0];
error = devm_request_irq(&dpio_dev->dev, error = devm_request_irq(&dpio_dev->dev,
irq->msi_desc->irq, irq->msi_desc->irq,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment