Skip to contentSkip to conversation

staging: axis-fifo: fix wait_event_interruptable() continuation alignment

PATCH In review Condition00 2 participants 2 messages May 25 – Jul 7 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: axis-fifo: fix wait_event_interruptable() continuation alignment

Fixed the continuation indentation in axis-fifo_write() so the code matches the kernel style and passes the checks by scripts/checkpatch.pl.

---
 drivers/staging/axis-fifo/axis-fifo.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/axis-fifo/axis-fifo.c +3 -1
index 3aa2aa870ea9..7b96be052c55 100644
@@ -246,7 +246,9 @@ 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.54.0
maintainer
#1 lore raw
Quoted 4 lines · On Mon, May 25, 2026 at 05:31:16PM +0530, Condition00 wrote:

Fixed the continuation indentation in axis-fifo_write() so the code matches the kernel style and passes the checks by scripts/checkpatch.pl.

Real name please.

But:

Quoted 9 lines
---
 drivers/staging/axis-fifo/axis-fifo.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/axis-fifo/axis-fifo.c +0 -0
index 3aa2aa870ea9..7b96be052c55 100644

drivers/staging/axis-fifo/axis-fifo.c static ssize_t axis_fifo_write(struct file *f, const char __user *buf, · line 251

Quoted 7 lines
drivers/staging/axis-fifo/axis-fifo.c +3 -1
@@ -246,7 +246,9 @@ 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);

Isn't this now harder to understand?

thanks,

greg k-h