Avoid converting back and forth between int and enum

BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3962 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-12-08 00:00:06 +00:00
parent 882d414719
commit cd2d549a0b

View File

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