diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-04-12 02:20:08 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-04-12 02:20:08 +0000 |
commit | d797151d37e43add315b1d7c870acff76bbcb4ab (patch) | |
tree | fdfc7f4021890484a503768001cf513ec3bba188 /sys/arch/octeon | |
parent | ea579f9e5dc96dec6249f7bc80121f7ded88e861 (diff) |
remove unused buffer selection code
ok visa@
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/dev/octmmc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/octeon/dev/octmmc.c b/sys/arch/octeon/dev/octmmc.c index cb9c5de69a7..0c41a0ddd53 100644 --- a/sys/arch/octeon/dev/octmmc.c +++ b/sys/arch/octeon/dev/octmmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: octmmc.c,v 1.14 2019/10/07 22:40:35 cheloha Exp $ */ +/* $OpenBSD: octmmc.c,v 1.15 2023/04/12 02:20:07 jsg Exp $ */ /* * Copyright (c) 2016, 2017 Visa Hankala @@ -734,7 +734,7 @@ octmmc_exec_pio(struct octmmc_bus *bus, struct sdmmc_command *cmd) { struct octmmc_softc *sc = bus->bus_hc; unsigned char *ptr; - uint64_t index, piocmd, status, value; + uint64_t piocmd, status, value; unsigned int i; int s; @@ -807,10 +807,7 @@ octmmc_exec_pio(struct octmmc_bus *bus, struct sdmmc_command *cmd) /* If this is a read, copy data from the controller's buffer. */ if (cmd->c_data != NULL && ISSET(cmd->c_flags, SCF_CMD_READ)) { - /* Reset index, set autoincrement and select the buffer. */ - index = MIO_EMM_BUF_IDX_INC; - index |= (status >> MIO_EMM_RSP_STS_DBUF_SHIFT) << - MIO_EMM_BUF_IDX_BUF_NUM_SHIFT; + /* Reset index and set autoincrement. */ MMC_WR_8(sc, MIO_EMM_BUF_IDX, MIO_EMM_BUF_IDX_INC); ptr = cmd->c_data; |