From a0e4cc7288acd1addafd5c961ad4b5a246dbb7d7 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 16 Jun 2015 23:45:51 +0000 Subject: [PATCH] fileio: Remove dead code There is no FUA bit in WRITE VERIFY commands. Detected by Coverity. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6344 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- usr/fileio/common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr/fileio/common.c b/usr/fileio/common.c index 475704810..ecc91a77c 100644 --- a/usr/fileio/common.c +++ b/usr/fileio/common.c @@ -325,8 +325,6 @@ static int do_exec(struct vdisk_cmd *vcmd) /* O_DSYNC flag is used for WT devices */ if (reply->status == 0) exec_verify(vcmd, loff); - else if (fua) - exec_fsync(vcmd); } else { PRINT_WARNING("Attempt to write to read-only " "device %s", dev->name);