]> www.infradead.org Git - linux.git/commitdiff
dm-bufio: remove unused return value
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 10 Feb 2025 15:15:22 +0000 (16:15 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 24 Feb 2025 10:42:23 +0000 (11:42 +0100)
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

index aab8240429b0bac2a2600bad6560361b9d732c85..9c8ed65cd87e635366f65276756e0e3e48c8383a 100644 (file)
@@ -2234,7 +2234,7 @@ int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, sector_t c
 }
 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_bufio_client *c, sector_t block)
                        cache_put_and_wake(c, b);
                }
        }
-
-       return b ? true : false;
 }
 
 /*