Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH v2] staging: axis-fifo: Fix alignment of wait_event_interruptible in write path
@ 2026-05-10 17:06 Pramod Maurya
  0 siblings, 0 replies; only message in thread
From: Pramod Maurya @ 2026-05-10 17:06 UTC (permalink / raw)
  To: gregkh
  Cc: linux-staging, linux-kernel, singhigeet1729, jacobsfeder,
	pramod.nexgen, Ovidiu Panait, Dan Carpenter,
	Gustavo Piaz da Silva

Commit 87d653a894a4 ("staging: axis-fifo: Remove read/write timeout
module parameters") converted wait_event_interruptible_timeout() to
wait_event_interruptible() in both the read and write paths, but used
a single tab to indent the condition argument instead of aligning it
to the opening parenthesis.

Commit 72000df579c7 ("staging: axis-fifo: Fix indentation") corrected
the read path in axis_fifo_read(), but the write path in
axis_fifo_write() was left with the same misalignment:

  ret = wait_event_interruptible(fifo->write_queue,
          ioread32(fifo->base_addr + XLLF_TDFV_OFFSET) >= words_to_write);

Fix this remaining instance by aligning the condition argument and its
continuation to the opening parenthesis.

Fixes: 87d653a894a4 ("staging: axis-fifo: Remove read/write timeout module parameters")
Signed-off-by: Pramod Maurya <pramod.nexgen@gmail.com>
---
 drivers/staging/axis-fifo/axis-fifo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c
index 3aa2aa870ea9..1c34de020cf8 100644
--- a/drivers/staging/axis-fifo/axis-fifo.c
+++ b/drivers/staging/axis-fifo/axis-fifo.c
@@ -246,7 +246,8 @@ static ssize_t axis_fifo_write(struct file *f, const char __user *buf,
 		mutex_lock(&fifo->write_lock);
 
 		ret = wait_event_interruptible(fifo->write_queue,
-			ioread32(fifo->base_addr + XLLF_TDFV_OFFSET) >= words_to_write);
+					       ioread32(fifo->base_addr + XLLF_TDFV_OFFSET) >=
+					       words_to_write);
 		if (ret)
 			goto end_unlock;
 	}
-- 
2.52.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-10 17:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-10 17:06 [PATCH v2] staging: axis-fifo: Fix alignment of wait_event_interruptible in write path Pramod Maurya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox