]> git.proxmox.com Git - mirror_qemu.git/commit
sheepdog: Remove unnecessary NULL check in sd_prealloc()
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 18 May 2018 18:17:17 +0000 (19:17 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 23 May 2018 11:29:06 +0000 (13:29 +0200)
commitae8622ec1971cd4a63db4da25ecffa9ba21f811c
treef7eed3478d2742fe30accfd22ec0c6813567649c
parent4e24ed138b344f50a1b6ef59ad49b8a7bac15f1b
sheepdog: Remove unnecessary NULL check in sd_prealloc()

In commit 8b9ad56e9cbfd852a, we removed the code that could result
in our getting to sd_prealloc()'s out_with_err_set label with a
NULL blk pointer. That makes the NULL check in the error-handling
path unnecessary, and Coverity gripes about it (CID 1390636).
Delete the redundant check.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c