Skip to content

HID: Fine-tuning for several function implementations

SF Markus Elfring kernel-janitors linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18HID: Use kmalloc_array() in hid_input_field()drivers/hid/hid-core.c+1 -10 replies
2/18HID: Delete an error message for a failed memory allocation in open_collection()drivers/hid/hid-core.c+2 -30 replies
3/18HID: Use kmalloc_array() in open_collection()drivers/hid/hid-core.c+3 -20 replies
4/18HID: Improve another size determination in open_collection()drivers/hid/hid-core.c+2 -40 replies
5/18HID: Improve two size determinations in hid_open_report()drivers/hid/hid-core.c+2 -20 replies
6/18HID: Improve another size determination in hid_scan_report()drivers/hid/hid-core.c+1 -10 replies
7/18HID: Improve another size determination in hid_register_report()drivers/hid/hid-core.c+1 -10 replies
8/18HID: Adjust five checks for null pointersdrivers/hid/hid-core.c+5 -50 replies
9/18HID: Return an error code only as a constant in hid_allocate_device()drivers/hid/hid-core.c+1 -20 replies
10/18HID-debug: Replace five seq_printf() calls by seq_putc()drivers/hid/hid-debug.c+7 -50 replies
11/18HID-debug: Delete an unnecessary seq_printf() call in hid_dump_device()drivers/hid/hid-debug.c+1 -20 replies
12/18HID-debug: Replace 12 seq_printf() calls by seq_puts()drivers/hid/hid-debug.c+16 -140 replies
13/18HID-debug: Combine 11 seq_printf() calls into one call in hid_dump_field()drivers/hid/hid-debug.c+11 -121 reply
14/18HID-debug: Adjust two function calls together with a variable assignmentdrivers/hid/hid-debug.c+5 -20 replies
15/18HID-debug: Return an error code only as a constant in hid_debug_events_open()drivers/hid/hid-debug.c+4 -100 replies
16/18HID-debug: Add some spaces for better code readabilitydrivers/hid/hid-debug.c+14 -120 replies
17/18HID-debug: Delete an unnecessary variable initialisation in hid_resolv_usage()drivers/hid/hid-debug.c+1 -10 replies
18/18HID-picoLCD: Use seq_puts() in picolcd_debug_reset_show()drivers/hid/hid-picolcd_debugfs.c+2 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/18] HID: Fine-tuning for several function implementations

From: Markus Elfring <[email protected]>
Date: Tue, 7 Feb 2017 20:26:54 +0100

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

Markus Elfring (18):
Use kmalloc_array() in hid_input_field()
Delete an error message for a failed memory allocation in open_collection() Use kmalloc_array() in open_collection()
Improve another size determination in open_collection()
Improve two size determinations in hid_open_report()
Improve another size determination in hid_scan_report()
Improve another size determination in hid_register_report() Adjust five checks for null pointers
Return an error code only as a constant in hid_allocate_device()
debug: Replace five seq_printf() calls by seq_putc()
debug: Delete an unnecessary seq_printf() call in hid_dump_device()
debug: Replace 12 seq_printf() calls by seq_puts()
debug: Combine 11 seq_printf() calls into one call in hid_dump_field()
debug: Adjust two function calls together with a variable assignment
debug: Return an error code only as a constant in hid_debug_events_open()
debug: Add some spaces for better code readability
debug: Delete an unnecessary variable initialisation in hid_resolv_usage() Use seq_puts() in picolcd_debug_reset_show()

 drivers/hid/hid-core.c            |  39 ++++++-------
 drivers/hid/hid-debug.c           | 115 +++++++++++++++++++-------------------
 drivers/hid/hid-picolcd_debugfs.c |   6 +-
 3 files changed, 78 insertions(+), 82 deletions(-)
Signature · 1 line
2.11.1