From: Arshad Hussain Date: Fri, 24 Jun 2016 10:15:08 +0000 (+0530) Subject: LU-7950 osp: Remove assigned but not used variable X-Git-Tag: 2.8.58~7 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=107c1d022ffd976b4a335f794de731cf9d57a514;ds=sidebyside LU-7950 osp: Remove assigned but not used variable This patch removes import variable which were assigned but were not used within function 1. lwp_device_fini() under lustre/osp/lwp_dev.c 2. osp_device_fini() under lustre/osp/osp_dev.c Signed-off-by: Arshad Hussain Change-Id: If37bc78060aaf97127802c0fcbf50bc5483977fc Reviewed-on: http://review.whamcloud.com/21024 Tested-by: Jenkins Reviewed-by: Bob Glossman Reviewed-by: Dmitry Eremin Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/osp/lwp_dev.c b/lustre/osp/lwp_dev.c index 568bbfd..b28f32c 100644 --- a/lustre/osp/lwp_dev.c +++ b/lustre/osp/lwp_dev.c @@ -361,7 +361,6 @@ static struct lu_device *lwp_device_fini(const struct lu_env *env, struct lwp_device *m = lu2lwp_dev(ludev); struct ptlrpc_thread *thread = &m->lpd_notify_thread; struct l_wait_info lwi = { 0 }; - struct obd_import *imp; int rc; ENTRY; @@ -372,8 +371,6 @@ static struct lu_device *lwp_device_fini(const struct lu_env *env, if (m->lpd_exp != NULL) class_disconnect(m->lpd_exp); - imp = m->lpd_obd->u.cli.cl_import; - LASSERT(m->lpd_obd); ptlrpc_lprocfs_unregister_obd(m->lpd_obd); lprocfs_obd_cleanup(m->lpd_obd); diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index ed68c79..f20d8c6 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -1323,7 +1323,6 @@ static struct lu_device *osp_device_fini(const struct lu_env *env, struct lu_device *ld) { struct osp_device *osp = lu2osp_dev(ld); - struct obd_import *imp; int rc; ENTRY; @@ -1336,8 +1335,6 @@ static struct lu_device *osp_device_fini(const struct lu_env *env, if (osp->opd_storage_exp) obd_disconnect(osp->opd_storage_exp); - imp = osp->opd_obd->u.cli.cl_import; - if (osp->opd_symlink) lprocfs_remove(&osp->opd_symlink);