Skip to contentSkip to conversation

staging: axis-fifo: Fix alignment of wait_event_interruptible in write path

PATCH New Pramod Maurya 1 participant 1 message May 10 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: axis-fifo: Fix alignment of wait_event_interruptible in write path

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")
---
 drivers/staging/axis-fifo/axis-fifo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/axis-fifo/axis-fifo.c +2 -1
index 3aa2aa870ea9..1c34de020cf8 100644
@@ -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;
 	}
Signature · 1 line
2.52.0