mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
scst_vdisk: Avoid that smatch complains about unreachable code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5323 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -5545,8 +5545,8 @@ static int vdev_size_process_store(struct scst_sysfs_work_item *work)
|
||||
|
||||
virt_dev = dev->dh_priv;
|
||||
if (!virt_dev->nullio) {
|
||||
sBUG();
|
||||
res = -EPERM;
|
||||
sBUG();
|
||||
} else if (new_size % (1 << virt_dev->blk_shift) == 0) {
|
||||
virt_dev->file_size = new_size;
|
||||
virt_dev->nblocks = virt_dev->file_size >> dev->block_shift;
|
||||
|
||||
Reference in New Issue
Block a user