Skip to contentSkip to conversation

staging: axis-fifo: Fixes parenthesis alignment

PATCH In review Pedro Guimarães 2 participants 2 messages Mar 9, 2024 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 staging: axis-fifo: Fixes parenthesis alignment

This patch fixes the checks reported by checkpatch for alignment should match open parenthesis

---
 drivers/staging/axis-fifo/axis-fifo.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/axis-fifo/axis-fifo.c +3 -4
index c51818c56dd2..77a3f831fc65 100644
@@ -376,8 +376,8 @@ static ssize_t axis_fifo_read(struct file *f, char __user *buf,
 		 */
 		mutex_lock(&fifo->read_lock);
 		ret = wait_event_interruptible_timeout(fifo->read_queue,
-			ioread32(fifo->base_addr + XLLF_RDFO_OFFSET),
-			read_timeout);
+						       ioread32(fifo->base_addr + XLLF_RDFO_OFFSET),
+						       read_timeout);
 
 		if (ret <= 0) {
 			if (ret == 0) {
@@ -517,8 +517,7 @@ static ssize_t axis_fifo_write(struct file *f, const char __user *buf,
 		 */
 		mutex_lock(&fifo->write_lock);
 		ret = wait_event_interruptible_timeout(fifo->write_queue,
-			ioread32(fifo->base_addr + XLLF_TDFV_OFFSET)
-				 >= words_to_write,
+			ioread32(fifo->base_addr + XLLF_TDFV_OFFSET) >= words_to_write,
 			write_timeout);
 
 		if (ret <= 0) {
Signature · 1 line
2.43.0
#1 lore raw
Quoted 24 lines · Pedro Guimarães

This patch fixes the checks reported by checkpatch for alignment should match open parenthesis

---
 drivers/staging/axis-fifo/axis-fifo.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/axis-fifo/axis-fifo.c +2 -2
index c51818c56dd2..77a3f831fc65 100644
@@ -376,8 +376,8 @@ static ssize_t axis_fifo_read(struct file *f, char __user *buf,
 		 */
 		mutex_lock(&fifo->read_lock);
 		ret = wait_event_interruptible_timeout(fifo->read_queue,
-			ioread32(fifo->base_addr + XLLF_RDFO_OFFSET),
-			read_timeout);
+						       ioread32(fifo->base_addr + XLLF_RDFO_OFFSET),
+						       read_timeout);
 
 		if (ret <= 0) {
 			if (ret == 0) {

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

Quoted 9 lines
drivers/staging/axis-fifo/axis-fifo.c +1 -2
@@ -517,8 +517,7 @@ static ssize_t axis_fifo_write(struct file *f, const char __user *buf,
 		 */
 		mutex_lock(&fifo->write_lock);
 		ret = wait_event_interruptible_timeout(fifo->write_queue,
-			ioread32(fifo->base_addr + XLLF_TDFV_OFFSET)
-				 >= words_to_write,
+			ioread32(fifo->base_addr + XLLF_TDFV_OFFSET) >= words_to_write,
 			write_timeout);
 
 		if (ret <= 0) {

Actually, I think that both could stay with their current indentation, for symmetry.

julia