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

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
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment