]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: ich-spi: Remove unnecessary assignment in ich_init_controller()
authorBin Meng <bmeng.cn@gmail.com>
Wed, 16 Aug 2017 05:38:28 +0000 (22:38 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 24 Aug 2017 03:00:47 +0000 (11:00 +0800)
There is no need to do another assignment to ich7_spi.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/spi/ich.c

index 46dd9a873c7e36999ad0e0ff66c7dade4e1f45aa..909eefc04292d60d5e1ebee7cfce13900915feca 100644 (file)
@@ -126,7 +126,6 @@ static int ich_init_controller(struct udevice *dev,
        if (plat->ich_version == ICHV_7) {
                struct ich7_spi_regs *ich7_spi = sbase;
 
-               ich7_spi = (struct ich7_spi_regs *)sbase;
                ctlr->ichspi_lock = readw(&ich7_spi->spis) & SPIS_LOCK;
                ctlr->opmenu = offsetof(struct ich7_spi_regs, opmenu);
                ctlr->menubytes = sizeof(ich7_spi->opmenu);