diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2020-03-03 05:25:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-06 04:36:24 +0300 |
commit | dbce64cbee6b983890f17b91984dfdf7bd458e19 (patch) | |
tree | fad08c416c79de9a125a243bf2934fe5753df449 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 8d85b75b4e08ab41e55dbb43cb1b82b5b35f22c5 (diff) | |
download | linux-dbce64cbee6b983890f17b91984dfdf7bd458e19.tar.xz |
scsi: qedf: Use pci_get_dsn()
Replace the open-coded implementation for reading the PCIe DSN with
pci_get_dsn().
The original code used a for-loop that looped over each of the 8 bytes
and copied them into a temporary buffer. pci_get_dsn() uses two calls to
pci_read_config_dword, and correctly bitwise ORs them into a u64. Thus,
we can simplify the snprintf significantly using %016llX on a u64 value.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions