diff options
| author | Andrey Smirnov <[email protected]> | 2019-04-02 21:28:11 -0700 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2019-04-15 17:19:53 -0700 |
| commit | cb202bb8b3238f12fdb682e0361be9570b47288d (patch) | |
| tree | 5d62349974914a2329e4bbc5d2ce28e70bce9ec1 /tools/perf/scripts/python/futex-contention.py | |
| parent | 5aaa58734d8876640fe0a730c699ce7b9ea90b1c (diff) | |
hwmon: (iio_hwmon) Simplify attr.name generation in iio_hwmon_probe()
Since every call to devm_kasprintf() in the switch statement is mostly
the same, we can move all of the shared code outside and capture
differencies with two helper variables. No functional change intended.
Signed-off-by: Andrey Smirnov <[email protected]>
Cc: Guenter Roeck <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions