summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_device.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2015-05-31 22:14:03 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2015-06-15 23:25:59 -0700
commite34d366273ce17bba902975f7c1e64a24a399024 (patch)
tree381320a16bfcb797e89edbc3955c0b3904a34e8c /drivers/target/target_core_device.c
parentbc0c94b1404b225b19b6b53a0e508f43e269ed1e (diff)
target: Drop duplicate + unused se_dev_check_wce
Reported-by: kbuild test robot <fengguang.wu@intel.com> Reported-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r--drivers/target/target_core_device.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c
index 3baa6cd7fded..db531fb5e787 100644
--- a/drivers/target/target_core_device.c
+++ b/drivers/target/target_core_device.c
@@ -538,18 +538,6 @@ static u32 se_dev_align_max_sectors(u32 max_sectors, u32 block_size)
return aligned_max_sectors;
}
-bool se_dev_check_wce(struct se_device *dev)
-{
- bool wce = false;
-
- if (dev->transport->get_write_cache)
- wce = dev->transport->get_write_cache(dev);
- else if (dev->dev_attrib.emulate_write_cache > 0)
- wce = true;
-
- return wce;
-}
-
int core_dev_add_lun(
struct se_portal_group *tpg,
struct se_device *dev,