Found with readability-else-after-return Signed-off-by: Rosen Penev <rosenp@gmail.com>
Let's consolidate the code, we need to use it in libfdisk too. It seems better to keep it generic and libblkid independent. This patch also removes blkid_encode_alloc(), this function is overkill. Signed-off-by: Karel Zak <kzak@redhat.com>