librbd: Remove the redundant judgement.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
Jianpeng Ma 2015-04-24 13:34:47 +08:00
parent e146b04ba2
commit 059c0d15bb

View File

@ -1264,7 +1264,7 @@ reprotect_and_return_err:
if (!*order)
*order = RBD_DEFAULT_OBJ_ORDER;
if (*order && (*order > 64 || *order < 12)) {
if (*order > 64 || *order < 12) {
lderr(cct) << "order must be in the range [12, 64]" << dendl;
return -EDOM;
}