From 8428129d93a6916a37d7cc6a2c0ac6f7ec4e6587 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 6 Mar 2014 07:29:00 +0000 Subject: [PATCH] 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 --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 17af8a838..43f8fb160 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -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;