From cd2d549a0bd4f04360de1eeb535081da89f7e14b Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 8 Dec 2011 00:00:06 +0000 Subject: [PATCH] Avoid converting back and forth between int and enum BSD-signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3962 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 abbf4ecbe..3e5cce74b 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -977,7 +977,7 @@ static enum compl_status_e vdisk_synchronize_cache(struct vdisk_cmd_params *p) const loff_t loff = p->loff; const loff_t data_len = p->data_len; int immed = cdb[1] & 0x2; - int res; + enum compl_status_e res; TRACE(TRACE_ORDER, "SYNCHRONIZE_CACHE: " "loff=%lld, data_len=%lld, immed=%d",