mirror of
https://github.com/aaru-dps/Aaru.Decoders.git
synced 2025-12-16 19:24:32 +00:00
General code cleanup and style refactor.
This commit is contained in:
@@ -30,8 +30,6 @@
|
||||
// Copyright © 2011-2022 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
namespace Aaru.Decoders.SCSI;
|
||||
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
@@ -39,6 +37,8 @@ using System.Text;
|
||||
using Aaru.CommonTypes.Structs.Devices.SCSI;
|
||||
using Aaru.Helpers;
|
||||
|
||||
namespace Aaru.Decoders.SCSI;
|
||||
|
||||
// Information from the following standards:
|
||||
// T9/375-D revision 10l
|
||||
// T10/995-D revision 10
|
||||
@@ -2429,11 +2429,10 @@ public static class Inquiry
|
||||
sb.AppendLine("============================================================");
|
||||
}
|
||||
|
||||
if(response.VendorSpecific != null &&
|
||||
response.IsHiMD)
|
||||
if(response is { VendorSpecific: {}, IsHiMD: true })
|
||||
if(response.KreonPresent)
|
||||
{
|
||||
var vendor = new byte[7];
|
||||
byte[] vendor = new byte[7];
|
||||
Array.Copy(response.VendorSpecific, 11, vendor, 0, 7);
|
||||
sb.AppendLine("Vendor-specific bytes 47 to 55");
|
||||
sb.AppendLine("============================================================");
|
||||
|
||||
Reference in New Issue
Block a user