Skip to content

Commit

Permalink
dm-bufio: remove unused return value
Browse files Browse the repository at this point in the history
The return value of the function "forget_buffer" is not tested, so we can
remove it.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
  • Loading branch information
Mikulas Patocka committed Feb 24, 2025
1 parent 00204ae commit 3be1f25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/md/dm-bufio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}

/*
Expand Down

0 comments on commit 3be1f25

Please sign in to comment.