diff options
author | 2020-02-19 08:14:31 -0800 | |
---|---|---|
committer | 2020-03-26 04:45:25 +0900 | |
commit | ad95a613ea447e2404e343ab3636c4d960fa9580 (patch) | |
tree | 83116b8e924ac7cabc00c5b50158b23eacbdb3e4 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | nvme: Don't deter users from enabling hwmon support (diff) | |
download | wireguard-linux-ad95a613ea447e2404e343ab3636c4d960fa9580.tar.xz wireguard-linux-ad95a613ea447e2404e343ab3636c4d960fa9580.zip |
nvme: code cleanup nvme_identify_ns_desc()
The function nvme_identify_ns_desc() has 3 levels of nesting which make
error message to exceeded > 80 char per line which is not aligned with
the kernel code standards and rest of the NVMe subsystem code.
Add a helper function to move the processing of the log when the
command is successful by reducing the nesting and keeping the
code < 80 char per line.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions