REFACTOR: Expression is always 'true' or always 'false'.

This commit is contained in:
2017-12-21 17:34:47 +00:00
parent ccd9930884
commit 9a404acef4
19 changed files with 104 additions and 161 deletions

View File

@@ -159,7 +159,7 @@ namespace DiscImageChef.Devices
DicConsole.DebugWriteLine("SCSI Device", "KREON GET FEATURE LIST took {0} ms.", duration);
if(sense) return sense;
if(sense) return true;
if(buffer[0] != 0xA5 || buffer[1] != 0x5A || buffer[2] != 0x5A || buffer[3] != 0xA5) return true;

View File

@@ -240,7 +240,7 @@ namespace DiscImageChef.Devices
max = BigEndianBitConverter.ToUInt16(buf, 6);
last = BigEndianBitConverter.ToUInt16(buf, 8);
return sense;
return false;
}
/// <summary>
@@ -279,7 +279,7 @@ namespace DiscImageChef.Devices
enabled = buf[2] != 0;
speed = BigEndianBitConverter.ToUInt16(buf, 4);
return sense;
return false;
}
/// <summary>