staging: axis-fifo: Fix alignment of wait_event_interruptible arguments
PATCH 1/1 staging: axis-fifo: Fix alignment of wait_event_interruptible arguments
To: Greg Kroah-Hartman <[email protected]>
Cc: Ovidiu Panait <[email protected]>
Cc: Gustavo Piaz da Silva <[email protected]>
Cc: [email protected]
Cc: [email protected]
The second argument to wait_event_interruptible() was indented with a single tab instead of being aligned to the opening parenthesis. Since the fully-aligned form exceeds 80 columns, break the condition at the comparison operator and align the continuation line to the opening parenthesis.
Fixes the following checkpatch.pl warning:
CHECK: Alignment should match open parenthesis
--- drivers/staging/axis-fifo/axis-fifo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/axis-fifo/axis-fifo.c +2 -1
@@ -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
Greg KH
maintainerQuoted 5 lines · Pramod Maurya
To: Greg Kroah-Hartman <[email protected]>
Cc: Ovidiu Panait <[email protected]>
Cc: Gustavo Piaz da Silva <[email protected]>
Cc: [email protected]
Cc: [email protected]
Something went wrong, this shouldn't be in the body of the email :(
Quoted 20 lines
The second argument to
wait_event_interruptible()was indented with a single tab instead of being aligned to the opening parenthesis. Since the fully-aligned form exceeds 80 columns, break the condition at the comparison operator and align the continuation line to the opening parenthesis.Fixes the following checkpatch.pl warning:
CHECK: Alignment should match open parenthesisSigned-off-by Pramod Maurya <[email protected]>--- drivers/staging/axis-fifo/axis-fifo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/axis-fifo/axis-fifo.c +0
-0
drivers/staging/axis-fifo/axis-fifo.c static ssize_t axis_fifo_write(struct file *f, const char __user *buf, · line 250
Quoted 6 lines
drivers/staging/axis-fifo/axis-fifo.c +2
-1@@ -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);
No, the original is easier to understand, right?
thanks,
greg k-h