From: Bin Meng Date: Wed, 16 Aug 2017 05:38:28 +0000 (-0700) Subject: x86: ich-spi: Remove unnecessary assignment in ich_init_controller() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7d8297892715563a7d9ff6ff90876fd7cbeddd30;p=u-boot.git x86: ich-spi: Remove unnecessary assignment in ich_init_controller() There is no need to do another assignment to ich7_spi. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese --- diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 46dd9a873c..909eefc042 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -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);