diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-10-23 22:33:17 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-24 22:31:26 +0300 |
commit | bc8f7abe97159ee68106e5a99d5fc242cd01f150 (patch) | |
tree | 6fd65e73c07fd1d44b51f58da5425fed1a4de8bc /include/acpi/acpi_bus.h | |
parent | 48cf49d31994ff97b33c4044e618560ec84d35fb (diff) | |
download | linux-bc8f7abe97159ee68106e5a99d5fc242cd01f150.tar.xz |
ACPI: sysfs: Clean up create_pnp_modalias() and create_of_modalias()
'modalias' is only written with snprintf() and it is already guaranteed
to be nul-terminated, so remove the unneeded (but harmless) writes of a
trailing '\0' to it.
Also snprintf() never returns negative values, so remove redundant (but
harmless) checks for it.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
[ rjw: Merge two patches into one, combine changelogs, add subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acpi_bus.h')
0 files changed, 0 insertions, 0 deletions