block: remove redundant check before g_slist_find()
commit764ba3ae511adddfa750db290ac8375d660ca5b9
authorAlberto Garcia <berto@igalia.com>
Mon, 29 Jun 2015 13:12:13 +0000 (29 16:12 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 2 Jul 2015 09:06:23 +0000 (2 10:06 +0100)
treeacbc34609f422f0f2bb0f9cb39ad8d4c8c39bf96
parent29c838cdc96c4d117f00c75bbcb941e1be9590fb
block: remove redundant check before g_slist_find()

An empty GSList is represented by a NULL pointer, therefore it's a
perfectly valid argument for g_slist_find() and there's no need to
make any additional check.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: 1435583533-5758-1-git-send-email-berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c