projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00204ae
)
dm-bufio: remove unused return value
author
Mikulas Patocka
<mpatocka@redhat.com>
Mon, 10 Feb 2025 15:15:22 +0000
(16:15 +0100)
committer
Mikulas 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-bufio.c
b/drivers/md/dm-bufio.c
index aab8240429b0bac2a2600bad6560361b9d732c85..9c8ed65cd87e635366f65276756e0e3e48c8383a 100644
(file)
--- a/
drivers/md/dm-bufio.c
+++ b/
drivers/md/dm-bufio.c
@@
-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;
}
/*