mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use collection expressions.
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
// Copyright © 2011-2024 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
using System;
|
||||
using Aaru.Console;
|
||||
using Aaru.Decoders.ATA;
|
||||
|
||||
@@ -45,7 +44,7 @@ public partial class Device
|
||||
/// <returns><c>true</c> if the device set an error condition, <c>false</c> otherwise</returns>
|
||||
public bool SmartDisable(out AtaErrorRegistersLba28 statusRegisters, uint timeout, out double duration)
|
||||
{
|
||||
byte[] buffer = Array.Empty<byte>();
|
||||
byte[] buffer = [];
|
||||
|
||||
var registers = new AtaRegistersLba28
|
||||
{
|
||||
@@ -80,7 +79,7 @@ public partial class Device
|
||||
public bool SmartEnableAttributeAutosave(out AtaErrorRegistersLba28 statusRegisters, uint timeout,
|
||||
out double duration)
|
||||
{
|
||||
byte[] buffer = Array.Empty<byte>();
|
||||
byte[] buffer = [];
|
||||
|
||||
var registers = new AtaRegistersLba28
|
||||
{
|
||||
@@ -116,7 +115,7 @@ public partial class Device
|
||||
public bool SmartDisableAttributeAutosave(out AtaErrorRegistersLba28 statusRegisters, uint timeout,
|
||||
out double duration)
|
||||
{
|
||||
byte[] buffer = Array.Empty<byte>();
|
||||
byte[] buffer = [];
|
||||
|
||||
var registers = new AtaRegistersLba28
|
||||
{
|
||||
@@ -150,7 +149,7 @@ public partial class Device
|
||||
/// <returns><c>true</c> if the device set an error condition, <c>false</c> otherwise</returns>
|
||||
public bool SmartEnable(out AtaErrorRegistersLba28 statusRegisters, uint timeout, out double duration)
|
||||
{
|
||||
byte[] buffer = Array.Empty<byte>();
|
||||
byte[] buffer = [];
|
||||
|
||||
var registers = new AtaRegistersLba28
|
||||
{
|
||||
@@ -186,7 +185,7 @@ public partial class Device
|
||||
public bool SmartExecuteOffLineImmediate(out AtaErrorRegistersLba28 statusRegisters, byte subcommand, uint timeout,
|
||||
out double duration)
|
||||
{
|
||||
byte[] buffer = Array.Empty<byte>();
|
||||
byte[] buffer = [];
|
||||
|
||||
var registers = new AtaRegistersLba28
|
||||
{
|
||||
@@ -295,7 +294,7 @@ public partial class Device
|
||||
/// <returns><c>true</c> if the device set an error condition, <c>false</c> otherwise</returns>
|
||||
public bool SmartReturnStatus(out AtaErrorRegistersLba28 statusRegisters, uint timeout, out double duration)
|
||||
{
|
||||
byte[] buffer = Array.Empty<byte>();
|
||||
byte[] buffer = [];
|
||||
|
||||
var registers = new AtaRegistersLba28
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user