Message ID | 20180318114720.17681-1-xypron.glpk@gmx.de |
---|---|
State | Accepted |
Commit | 4bcd88a2d878f327e66efc45cca23693b7a8682b |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show |
Series | [U-Boot,1/1] spi: fsl_qspi: remove superfluous assignment | expand |
On Sun, Mar 18, 2018 at 5:17 PM, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote: > In > > void *rx_addr = NULL; > rx_add = A; > > the first assignment has no effect. Remove it. > > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> > --- Applied to u-boot-spi/master
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index 5dc69a6865..75793dd1ab 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -389,7 +389,7 @@ static inline void qspi_ahb_read(struct fsl_qspi_priv *priv, u8 *rxbuf, int len) { struct fsl_qspi_regs *regs = priv->regs; u32 mcr_reg; - void *rx_addr = NULL; + void *rx_addr; mcr_reg = qspi_read32(priv->flags, ®s->mcr);
In void *rx_addr = NULL; rx_add = A; the first assignment has no effect. Remove it. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)