summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-13 15:23:31 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-13 15:23:31 +0000
commit6315bf0025e9bb92ac6e8655ba644f039f3cb106 (patch)
tree2b22175e6d7735fcfd5a7c79bee27dbe506c956e /util
parent995f25e19927c7f2d2a89c8a5fb8985c3bb00f3a (diff)
util/nvmutul: remove unused arg in io_args
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 2aa47d19..da7c426c 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -343,7 +343,7 @@ static ssize_t do_rw(int fd,
static ssize_t prw(int fd, void *mem, size_t nrw,
off_t off, int rw_type);
static off_t lseek_eintr(int fd, off_t off, int whence);
-static int io_args(int fd, void *mem, size_t nrw,
+static int io_args(int fd, size_t nrw,
off_t off, int rw_type);
/*
@@ -1571,7 +1571,7 @@ rw_file_exact(int fd, uint8_t *mem, size_t nrw,
ssize_t rv;
size_t rc;
- if (io_args(fd, mem, nrw, off, rw_type) == -1) {
+ if (io_args(fd, nrw, off, rw_type) == -1) {
errno = EIO;
return -1;
}
@@ -1598,7 +1598,7 @@ rw_file_once(int fd, uint8_t *mem, size_t nrw,
size_t retries_on_zero = 0;
size_t max_retries = 10;
- if (io_args(fd, mem, nrw, off, rw_type) == -1)
+ if (io_args(fd, nrw, off, rw_type) == -1)
goto err_rw_file_once;
read_again:
@@ -1629,7 +1629,7 @@ static ssize_t
do_rw(int fd, uint8_t *mem,
size_t nrw, off_t off, int rw_type)
{
- if (io_args(fd, mem, nrw, off, rw_type) == -1)
+ if (io_args(fd, nrw, off, rw_type) == -1)
goto err_do_rw;
if (rw_type == IO_READ)
@@ -1665,7 +1665,7 @@ prw(int fd, void *mem, size_t nrw,
int prw_type;
int flags;
- if (io_args(fd, mem, nrw, off, rw_type) == -1)
+ if (io_args(fd, nrw, off, rw_type) == -1)
goto err_prw;
prw_type = rw_type ^ IO_PREAD;
@@ -1713,7 +1713,7 @@ err_prw:
}
static int
-io_args(int fd, void *mem, size_t nrw,
+io_args(int fd, size_t nrw,
off_t off, int rw_type)
{
if (off > 0