scst: Suppress a smatch warning in vdisk_unmap_range()

Avoid that the static source code analysis tool 'smatch' reports
the following warning:

vdisk_unmap_range() warn: should 'blocks << cmd->dev->block_shift' be a 64 bit type?

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5987 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2015-01-22 05:10:42 +00:00
parent a3d1d4f809
commit fdc6cdf1ed

View File

@@ -3119,7 +3119,7 @@ static int vdisk_unmap_range(struct scst_cmd *cmd,
#endif
} else {
loff_t off = start_lba << cmd->dev->block_shift;
loff_t len = blocks << cmd->dev->block_shift;
loff_t len = (u64)blocks << cmd->dev->block_shift;
res = vdisk_unmap_file_range(cmd, virt_dev, off, len, fd);
if (unlikely(res != 0))