From d99379104b31c5e60c5342085b4887987cbb0827 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 19 May 2012 08:12:07 +0000 Subject: [PATCH] ib_srpt, procfs: Fix a compiler warning introduced in r4260 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4310 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 3e110a9d5..cdbc38a23 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2302,7 +2302,7 @@ static void __srpt_close_all_ch(struct srpt_device *sdev) #if !defined(CONFIG_SCST_PROC) /** - * srpt_enable_target() - Allows to enable a target via sysfs. + * srpt_enable_target - Set the "enabled" status of a target. */ static int srpt_enable_target(struct scst_tgt *scst_tgt, bool enable) { @@ -2326,7 +2326,7 @@ static int srpt_enable_target(struct scst_tgt *scst_tgt, bool enable) } /** - * srpt_is_target_enabled() - Allows to query a targets status via sysfs. + * srpt_is_target_enabled - Report whether a target is enabled. */ static bool srpt_is_target_enabled(struct scst_tgt *scst_tgt) { @@ -2343,14 +2343,6 @@ static bool srpt_is_target_enabled(struct scst_tgt *scst_tgt) spin_unlock_irq(&sdev->spinlock); return res; } -#else -/** - * srpt_is_target_enabled() - Reports that a target is enabled when using procfs. - */ -static bool srpt_is_target_enabled(struct scst_tgt *scst_tgt) -{ - return true; -} #endif /**