mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
ib_srpt, procfs: Fix a compiler warning introduced in trunk r4260 (merge r4310 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4360 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2308,7 +2308,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)
|
||||
{
|
||||
@@ -2332,7 +2332,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)
|
||||
{
|
||||
@@ -2349,14 +2349,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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user