Skip to contentSkip to conversation

Staging: pi433: Fix checkpatch.pl issue

PATCH In review Debleena Sen 2 participants 2 messages Mar 3, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: pi433: Fix checkpatch.pl issue

This patch fixes the checkpatch.pl warning:
WARNING: line over 80 characters

---
 drivers/staging/pi433/rf69.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/pi433/rf69.c +2 -1
index e19b9ce..0c189a7 100644
@@ -563,7 +563,8 @@ bool rf69_get_flag(struct spi_device *spi, enum flag flag)
 {
 	switch (flag) {
 	case mode_switch_completed:
-		return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_MODE_READY);
+		return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+			MASK_IRQFLAGS1_MODE_READY);
 	case ready_to_receive:
 		return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_RX_READY);
 	case ready_to_send:
Signature · 1 line
2.7.4
#1 lore raw

The subject line is not good. It doesn't give any information.

Quoted 2 lines · Debleena Sen

This patch fixes the checkpatch.pl warning:
WARNING: line over 80 characters

The log message also doesn't give much information. What would you say if you were forbidded to use the word "fix"?

julia

Quoted 29 lines
---
 drivers/staging/pi433/rf69.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/pi433/rf69.c +2 -2
index e19b9ce..0c189a7 100644
@@ -563,7 +563,8 @@ bool rf69_get_flag(struct spi_device *spi, enum flag flag)
 {
 	switch (flag) {
 	case mode_switch_completed:
-		return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_MODE_READY);
+		return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+			MASK_IRQFLAGS1_MODE_READY);
 	case ready_to_receive:
 		return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_RX_READY);
 	case ready_to_send:
--

2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1551596995-2999-1-git-send-email-idebleenasen%40gmail.com.
For more options, visit https://groups.google.com/d/optout.