diff options
author | Bin Meng | 2017-08-15 22:38:28 -0700 |
---|---|---|
committer | Bin Meng | 2017-08-24 11:00:47 +0800 |
commit | 7d8297892715563a7d9ff6ff90876fd7cbeddd30 (patch) | |
tree | ee401a069ebf27a98f2b8760c37d39acd1d0c7c4 | |
parent | 94bc9177cabdedd30795d236699b5df1c5c1d4a5 (diff) |
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 <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | drivers/spi/ich.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 46dd9a873c7..909eefc0429 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); |