diff options
| author | Damien Le Moal <[email protected]> | 2019-01-30 16:07:34 +0900 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-02-04 22:07:24 -0500 |
| commit | d7e6db20944c8fb26073bc3ba9d5328992b82858 (patch) | |
| tree | 2fcc6f26bb7b30d006713d8129c3b5ee26d0ac9c /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 27752647f88a1b03019e03f21f32b60452af7d4b (diff) | |
scsi: sd: Improve sd_print_capacity()
There is no need to call twice string_get_size() when the capacity messages
are not going to be printed. Reverse the message output condition to return
early and avoid executing string_get_size() when it is not necessary.
Signed-off-by: Damien Le Moal <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions