Commit 3be1f253 authored by Mikulas Patocka's avatar Mikulas Patocka
Browse files

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: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 00204ae3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
}

/*