[dm-devel] [PATCH 14/39] libmultipath: drop unused variable 'diop' in libsg.c
Hannes Reinecke
hare at suse.de
Thu Jun 16 09:47:20 UTC 2016
Found by coverity.
Signed-off-by: Hannes Reinecke <hare at suse.com>
---
libmultipath/checkers/libsg.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libmultipath/checkers/libsg.c b/libmultipath/checkers/libsg.c
index 0d3af1f..958ea92 100644
--- a/libmultipath/checkers/libsg.c
+++ b/libmultipath/checkers/libsg.c
@@ -19,7 +19,6 @@ sg_read (int sg_fd, unsigned char * buff, int buff_len,
long long start_block = 0;
int bs = 512;
int cdbsz = 10;
- int * diop = NULL;
unsigned char rdCmd[cdbsz];
unsigned char *sbb = sense;
@@ -55,8 +54,6 @@ sg_read (int sg_fd, unsigned char * buff, int buff_len,
io_hdr.sbp = sense;
io_hdr.timeout = timeout * 1000;
io_hdr.pack_id = (int)start_block;
- if (diop && *diop)
- io_hdr.flags |= SG_FLAG_DIRECT_IO;
retry:
memset(sense, 0, sense_len);
--
2.6.6
More information about the dm-devel
mailing list