Skip to content

Commit

Permalink
target: Drop duplicate + unused se_dev_check_wce
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicholas Bellinger committed Jun 16, 2015
1 parent bc0c94b commit e34d366
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/target/target_core_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e34d366

Please sign in to comment.