diff mbox series

dm-bufio: remove unused return value

Message ID 35bd630a-ed59-54d8-c77c-3f4960830688@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: Mikulas Patocka
Headers show
Series dm-bufio: remove unused return value | expand

Commit Message

Mikulas Patocka Feb. 10, 2025, 3:15 p.m. UTC
The return value of the function "forget_buffer" is not tested, so we can
remove it.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
 drivers/md/dm-bufio.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

Index: linux-2.6/drivers/md/dm-bufio.c
===================================================================
--- linux-2.6.orig/drivers/md/dm-bufio.c	2025-01-03 21:10:56.000000000 +0100
+++ linux-2.6/drivers/md/dm-bufio.c	2025-02-10 16:05:57.000000000 +0100
@@ -2234,7 +2234,7 @@  int dm_bufio_issue_discard(struct dm_buf
 }
 EXPORT_SYMBOL_GPL(dm_bufio_issue_discard);
 
-static bool forget_buffer(struct dm_bufio_client *c, sector_t block)
+static void forget_buffer(struct dm_bufio_client *c, sector_t block)
 {
 	struct dm_buffer *b;
 
@@ -2249,8 +2249,6 @@  static bool forget_buffer(struct dm_bufi
 			cache_put_and_wake(c, b);
 		}
 	}
-
-	return b ? true : false;
 }
 
 /*