diff options
| author | Dan Carpenter <[email protected]> | 2021-09-16 16:26:05 +0300 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-10-04 23:51:14 -0400 |
| commit | 76a4f7cc5973608556c68ac1da60d29c4a6c1d30 (patch) | |
| tree | 663384aadb2b0f34ec1ca5131f99e1334a017498 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 4084a7235d38311a77c86ba69ba849bd787db87b (diff) | |
scsi: mpi3mr: Clean up mpi3mr_print_ioc_info()
This function is more complicated than necessary.
If we change from scnprintf() to snprintf() that lets us remove the if
bytes_wrote < sizeof(protocol) checks. Also, we can use bytes_wrote ? ","
: "" to print the comma and remove the separate if statement and the
"is_string_nonempty" variable.
[mkp: a few formatting cleanups and s/wrote/written/]
Link: https://lore.kernel.org/r/20210916132605.GF25094@kili
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions