mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
x86: ich-spi: Remove useless assignment in ich_spi_xfer()
In ich_spi_xfer() when the driver presets control fields, control variable gets assigned twice. Apparently only the last assignment takes effect. Remove the other one. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
6ef2f90108
commit
52dd56ba84
1 changed files with 0 additions and 2 deletions
|
@ -468,8 +468,6 @@ static int ich_spi_xfer(struct udevice *dev, unsigned int bitlen,
|
|||
}
|
||||
|
||||
/* Preset control fields */
|
||||
control = ich_readw(ctlr, ctlr->control);
|
||||
control &= ~SSFC_RESERVED;
|
||||
control = SPIC_SCGO | ((opcode_index & 0x07) << 4);
|
||||
|
||||
/* Issue atomic preop cycle if needed */
|
||||
|
|
Loading…
Add table
Reference in a new issue