mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user