lkml.org 
[lkml]   [2017]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/7] HID: Fine-tuning for some function implementations
Date
From: Markus Elfring <elfring@users.sourceforge.net>
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

\
 
 \ /
  Last update: 2017-04-24 22:13    [W:0.071 / U:0.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site