Fix warnings.

This commit is contained in:
2020-03-12 00:29:39 +00:00
parent 4cd2410168
commit 236c70fc55
8 changed files with 10 additions and 13 deletions

View File

@@ -32,7 +32,6 @@
using System;
using System.Linq;
using Aaru.Checksums;
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Extents;
using Aaru.CommonTypes.Structs;
@@ -94,7 +93,6 @@ namespace Aaru.Core.Devices.Dumping
byte[] senseBuf = null; // Sense buffer
double cmdDuration = 0; // Command execution time
const uint sectorSize = 2352; // Full sector size
byte[] tmpBuf; // Temporary buffer
newTrim = false;
PlextorSubchannel supportedPlextorSubchannel;
@@ -313,8 +311,8 @@ namespace Aaru.Core.Devices.Dumping
sense = ReadPlextorWithSubchannel(out cmdBuf, out senseBuf,
(uint)(firstSectorToRead + r + adjustment), blockSize,
(uint)sectorsForOffset + 1,
supportedPlextorSubchannel, out cmdDuration);
(uint)sectorsForOffset + 1, supportedPlextorSubchannel,
out cmdDuration);
totalDuration += cmdDuration;

View File

@@ -56,8 +56,7 @@ namespace Aaru.Core.Devices.Dumping
byte[] cmdBuf = null; // Data buffer
double cmdDuration; // Command execution time
const uint sectorSize = 2352; // Full sector size
byte[] tmpBuf; // Temporary buffer
byte[] senseBuf = null; // Sense buffer
byte[] senseBuf = null; // Sense buffer
PlextorSubchannel supportedPlextorSubchannel;
switch(supportedSubchannel)

View File

@@ -55,7 +55,6 @@ namespace Aaru.Core.Devices.Dumping
byte[] cmdBuf = null; // Data buffer
double cmdDuration = 0; // Command execution time
const uint sectorSize = 2352; // Full sector size
byte[] tmpBuf; // Temporary buffer
PlextorSubchannel supportedPlextorSubchannel;
switch(supportedSubchannel)