target: Drop duplicate + unused se_dev_check_wce

Reported-by: kbuild test robot <[email protected]>
Reported-by: Bart Van Assche <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
Nicholas Bellinger 2015-05-31 22:14:03 -07:00
commit e34d366273

View file

@ -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,