Commit 02c0207e authored by Yuesong Li's avatar Yuesong Li Committed by Mikulas Patocka
Browse files

dm bufio: Remove NULL check of list_entry()



list_entry() will never return a NULL pointer, thus remove the
check.

Signed-off-by: default avatarYuesong Li <liyuesong@vivo.com>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 4441686b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -529,9 +529,6 @@ static struct dm_buffer *list_to_buffer(struct list_head *l)
{
	struct lru_entry *le = list_entry(l, struct lru_entry, list);

	if (!le)
		return NULL;

	return le_to_buffer(le);
}