[PATCH v2 0/9] ACPI-video: Fine-tuning for several function implementations

From: Markus Elfring
Date: Wed Aug 09 2017 - 11:16:15 EST


Several update suggestions were taken into account
from static source code analysis.

Markus Elfring (9):
Use kmalloc_array() in acpi_video_get_levels()
Return directly after a failed device query
Delete an error message for a failed kzalloc() call
Return directly after a failed input_allocate_device()
Delete unnecessary if statement in acpi_video_switch_brightness()
Improve a jump target in acpi_video_switch_brightness()
Delete an unnecessary initialisation in three functions
Move four assignments in acpi_video_get_levels()
Improve a size determination in four functions

---

v2:
* Desired changes were rebased on source files from Linux next-20170803.

* Some update steps were recombined.

drivers/acpi/acpi_video.c | 53 ++++++++++++++++++++++-------------------------
1 file changed, 25 insertions(+), 28 deletions(-)

--
2.13.4