mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
spi: mxc_spi: remove redundant code in spi_xchg_single()
The value of cnt is overwritten without being used. Signed-off-by: Haolin Li <li.haolin@qq.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
This commit is contained in:
parent
556523b955
commit
6f753d8cea
1 changed files with 0 additions and 2 deletions
|
@ -391,8 +391,6 @@ int spi_xchg_single(struct mxc_spi_slave *mxcs, unsigned int bitlen,
|
|||
|
||||
nbytes = DIV_ROUND_UP(bitlen, 8);
|
||||
|
||||
cnt = nbytes % 32;
|
||||
|
||||
if (bitlen % 32) {
|
||||
data = reg_read(®s->rxdata);
|
||||
cnt = (bitlen % 32) / 8;
|
||||
|
|
Loading…
Reference in a new issue