diff options
| author | Andy Shevchenko <[email protected]> | 2023-08-31 11:00:00 +0000 |
|---|---|---|
| committer | Heiko Carstens <[email protected]> | 2023-09-05 18:12:52 +0000 |
| commit | f59ec04d382d2f2528f439947e215a52703e0094 (patch) | |
| tree | d5c9e88eb53d05202530a9cadfb9f859a95acb6a /tools/perf/scripts/python/netdev-times.py | |
| parent | s390/zcrypt: don't leak memory if dev_set_name() fails (diff) | |
| download | kernel-f59ec04d382d2f2528f439947e215a52703e0094.tar.gz kernel-f59ec04d382d2f2528f439947e215a52703e0094.zip | |
s390/zcrypt: utilize dev_set_name() ability to use a formatted string
With the dev_set_name() prototype it's not obvious that it takes
a formatted string as a parameter. Use its facility instead of
duplicating the same with strncpy()/snprintf() calls.
With this, also prevent return error code to be shadowed.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Harald Freudenberger <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
