From 6c747f6cc18e0e89d3d90e9c8f0de1994776871f Mon Sep 17 00:00:00 2001 From: Jinshan Xiong Date: Tue, 30 Aug 2016 21:44:50 -0700 Subject: [PATCH] LU-8561 osd-zfs: make smatch happy By removing the check of null pointer and call dmu_objset_disown() directly. Signed-off-by: Jinshan Xiong Change-Id: I3e6e684968946a923ec4b1a59ea881145f3bdede Reviewed-on: http://review.whamcloud.com/22245 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/osd-zfs/osd_handler.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/osd-zfs/osd_handler.c b/lustre/osd-zfs/osd_handler.c index d0efb85..f3da6b76 100644 --- a/lustre/osd-zfs/osd_handler.c +++ b/lustre/osd-zfs/osd_handler.c @@ -1029,8 +1029,7 @@ static int osd_mount(const struct lu_env *env, 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; } -- 1.8.3.1