[PATCH 0/7] HID: Fine-tuning for some function implementations

From: SF Markus Elfring
Date: Mon Apr 24 2017 - 16:13:43 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Apr 2017 22:00:22 +0200

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

Markus Elfring (7):
Use devm_kcalloc() in sensor_hub_probe()
Delete error messages for failed memory allocations in sensor_hub_probe()
Adjust two checks for null pointers in sensor_hub_probe()
Replace five seq_printf() calls by seq_putc()
Replace 12 seq_printf() calls by seq_puts()
Combine two seq_printf() calls into one call in hid_dump_device()
Replace two seq_printf() calls by seq_puts() in picolcd_debug_reset_show()

drivers/hid/hid-debug.c | 38 +++++++++++++++++++-------------------
drivers/hid/hid-picolcd_debugfs.c | 4 ++--
drivers/hid/hid-sensor-hub.c | 18 ++++++++----------
3 files changed, 29 insertions(+), 31 deletions(-)

--
2.12.2