From bce0b45855758e271f8d38ea7e9738d11925f7de Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 7 Nov 2013 00:02:26 +0000 Subject: [PATCH] scst_tg: Simplify scst_impl_alua_configured() git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5088 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_tg.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scst/src/scst_tg.c b/scst/src/scst_tg.c index 34bfaf960..12ee29d17 100644 --- a/scst/src/scst_tg.c +++ b/scst/src/scst_tg.c @@ -3,7 +3,7 @@ * * SCSI target group related code. * - * Copyright (C) 2011 Bart Van Assche . + * Copyright (C) 2011-2013 Bart Van Assche . * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -1195,14 +1195,12 @@ EXPORT_SYMBOL_GPL(scst_lookup_tg_id); bool scst_impl_alua_configured(struct scst_device *dev) { struct scst_dev_group *dg; - bool res; mutex_lock(&scst_mutex); dg = __lookup_dg_by_dev(dev); - res = dg != NULL; mutex_unlock(&scst_mutex); - return res; + return dg != NULL; } EXPORT_SYMBOL_GPL(scst_impl_alua_configured);