projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a720ae0
)
rbd: remove unnecessary asserts in rbd_dev_image_probe()
author
Ilya Dryomov
<ilya.dryomov@inktank.com>
Wed, 23 Jul 2014 13:11:20 +0000
(17:11 +0400)
committer
Ilya Dryomov
<ilya.dryomov@inktank.com>
Fri, 25 Jul 2014 09:15:18 +0000
(13:15 +0400)
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>
drivers/block/rbd.c
patch
|
blob
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index 0d3be608f16fa25fadeaf7bc4eba099835e8733e..4541f6027e4a880792d37ee1acf895f14c6636b2 100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-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)