Skip to contentSkip to conversation

staging: pi433: fix wrong comment

PATCH In review Sidong Yang 2 participants 2 messages Jul 29, 2022 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: pi433: fix wrong comment

The comment should describe the error when user calls rf69_write_fifo() not rf69_write_fifo().

---
 drivers/staging/pi433/rf69.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/pi433/rf69.c +1 -1
index 659c8c1b38fd..8c7fab6a46bb 100644
@@ -816,7 +816,7 @@ int rf69_write_fifo(struct spi_device *spi, u8 *buffer, unsigned int size)
 
 	if (size > FIFO_SIZE) {
 		dev_dbg(&spi->dev,
-			"read fifo: passed in buffer bigger then internal buffer\n");
+			"write fifo: passed in buffer bigger then internal buffer\n");
 		return -EMSGSIZE;
 	}
 
Signature · 1 line
2.30.2
#1 lore raw
Quoted 13 lines · Sidong Yang

The comment should describe the error when user calls rf69_write_fifo() not rf69_write_fifo().

---
 drivers/staging/pi433/rf69.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/pi433/rf69.c +0 -0
index 659c8c1b38fd..8c7fab6a46bb 100644

drivers/staging/pi433/rf69.c int rf69_write_fifo(struct spi_device *spi, u8 *buffer, unsigned int size) · line 819

Quoted 5 lines
drivers/staging/pi433/rf69.c +1 -1
@@ -816,7 +816,7 @@ int rf69_write_fifo(struct spi_device *spi, u8 *buffer, unsigned int size)
 
 	if (size > FIFO_SIZE) {
 		dev_dbg(&spi->dev,
-			"read fifo: passed in buffer bigger then internal buffer\n");
+			"write fifo: passed in buffer bigger then internal buffer\n");

This is not a comment.