Skip to content

Commit 3be1f25

Browse files
author
Mikulas Patocka
committed
dm-bufio: remove unused return value
The return value of the function "forget_buffer" is not tested, so we can remove it. Signed-off-by: Mikulas Patocka <[email protected]>
1 parent 00204ae commit 3be1f25

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/md/dm-bufio.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,7 +2234,7 @@ int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, sector_t c
22342234
}
22352235
EXPORT_SYMBOL_GPL(dm_bufio_issue_discard);
22362236

2237-
static bool forget_buffer(struct dm_bufio_client *c, sector_t block)
2237+
static void forget_buffer(struct dm_bufio_client *c, sector_t block)
22382238
{
22392239
struct dm_buffer *b;
22402240

@@ -2249,8 +2249,6 @@ static bool forget_buffer(struct dm_bufio_client *c, sector_t block)
22492249
cache_put_and_wake(c, b);
22502250
}
22512251
}
2252-
2253-
return b ? true : false;
22542252
}
22552253

22562254
/*

0 commit comments

Comments
 (0)