projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f1094b
)
ACPICA: exserial.c: replace ternary operator with ACPI_MIN()
author
Jiangshan Yi
<yijiangshan@kylinos.cn>
Thu, 20 Apr 2023 07:42:47 +0000
(15:42 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 10 Jul 2023 13:21:03 +0000
(15:21 +0200)
ACPICA commit
2250f71fe77396db21df805222ffcbf19e1e7896
Make the code simpler and more readable.
Link:
https://github.com/acpica/acpica/commit/2250f71f
Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/exserial.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/acpica/exserial.c
b/drivers/acpi/acpica/exserial.c
index
5d99b1a
..
5241f4c
100644
(file)
--- a/
drivers/acpi/acpica/exserial.c
+++ b/
drivers/acpi/acpica/exserial.c
@@
-343,8
+343,7
@@
acpi_ex_write_serial_bus(union acpi_operand_object *source_desc,
/* Copy the input buffer data to the transfer buffer */
buffer = buffer_desc->buffer.pointer;
- data_length = (buffer_length < source_desc->buffer.length ?
- buffer_length : source_desc->buffer.length);
+ data_length = ACPI_MIN(buffer_length, source_desc->buffer.length);
memcpy(buffer, source_desc->buffer.pointer, data_length);
/* Lock entire transaction if requested */