summaryrefslogtreecommitdiff
path: root/drivers/spi/ich.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-08-27 02:22:58 (GMT)
committerBin Meng <bmeng.cn@gmail.com>2017-09-02 15:35:55 (GMT)
commit52dd56ba847acd048205e6412e779fda991c95d3 (patch)
tree21aeceded5e03c18e04652e3a52b73b3f78730e3 /drivers/spi/ich.c
parent6ef2f90108e2cf101d931c71ea7904f2b6301641 (diff)
downloadu-boot-52dd56ba847acd048205e6412e779fda991c95d3.tar.xz
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>
Diffstat (limited to 'drivers/spi/ich.c')
-rw-r--r--drivers/spi/ich.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index 373bc26..5a3d690 100644
--- a/drivers/spi/ich.c
+++ b/drivers/spi/ich.c
@@ -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 */