By removing the check of null pointer and call dmu_objset_disown()
directly.
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I3e6e684968946a923ec4b1a59ea881145f3bdede
Reviewed-on: http://review.whamcloud.com/22245
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
osd_unlinked_drain(env, o);
err:
if (rc) {
- if (o->od_os)
- dmu_objset_disown(o->od_os, o);
+ dmu_objset_disown(o->od_os, o);
o->od_os = NULL;
}