diff options
Diffstat (limited to 'source/components')
-rw-r--r-- | source/components/executer/exserial.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/components/executer/exserial.c b/source/components/executer/exserial.c index 6d57e3761..f51047f93 100644 --- a/source/components/executer/exserial.c +++ b/source/components/executer/exserial.c @@ -505,8 +505,7 @@ AcpiExWriteSerialBus ( /* Copy the input buffer data to the transfer buffer */ Buffer = BufferDesc->Buffer.Pointer; - DataLength = (BufferLength < SourceDesc->Buffer.Length ? - BufferLength : SourceDesc->Buffer.Length); + DataLength = ACPI_MIN (BufferLength, SourceDesc->Buffer.Length); memcpy (Buffer, SourceDesc->Buffer.Pointer, DataLength); /* Lock entire transaction if requested */ |