author: Arnd Bergmann <arnd@arndb.de> 2021-04-21 15:51:58 +0200
committer: Ulf Hansson <ulf.hansson@linaro.org> 2021-04-26 11:08:23 +0200
commit: 2f156712be4ab4c2707e096d619dc8bfbd01d388
parent: aea0440ad023ab0662299326f941214b0d7480bd
Commit Summary:
Diffstat:
1 file changed, 4 insertions, 1 deletion
diff --git a/drivers/memstick/host/r592.c b/drivers/memstick/host/r592.c
index 026fadaa1d5d..615a83782e55 100644
--- a/drivers/memstick/host/r592.c
+++ b/drivers/memstick/host/r592.c
@@ -359,12 +359,15 @@ static void r592_write_fifo_pio(struct r592_device *dev,
/* Flushes the temporary FIFO used to make aligned DWORD writes */
static void r592_flush_fifo_write(struct r592_device *dev)
{
+ int ret;
u8 buffer[4] = { 0 };
if (kfifo_is_empty(&dev->pio_fifo))
return;
- kfifo_out(&dev->pio_fifo, buffer, 4);
+ ret = kfifo_out(&dev->pio_fifo, buffer, 4);
+ /* intentionally ignore __must_check return code */
+ (void)ret;
r592_write_reg_raw_be(dev, R592_FIFO_PIO, *(u32 *)buffer);
}