rbd: remove unnecessary asserts in rbd_dev_image_probe()
spec->image_id assert doesn't buy us much and image_format is asserted in rbd_dev_header_name() and rbd_dev_header_info() anyway. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
This commit is contained in:
parent
a720ae0901
commit
7626eb7d82
|
@ -5143,8 +5143,6 @@ static int rbd_dev_image_probe(struct rbd_device *rbd_dev, bool mapping)
|
|||
ret = rbd_dev_image_id(rbd_dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
rbd_assert(rbd_dev->spec->image_id);
|
||||
rbd_assert(rbd_image_format_valid(rbd_dev->image_format));
|
||||
|
||||
ret = rbd_dev_header_name(rbd_dev);
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in New Issue