diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2020-03-02 18:25:02 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-05 17:36:24 -0800 |
commit | dbce64cbee6b983890f17b91984dfdf7bd458e19 (patch) | |
tree | fad08c416c79de9a125a243bf2934fe5753df449 /lib/test_bitmap.c | |
parent | 8d85b75b4e08ab41e55dbb43cb1b82b5b35f22c5 (diff) |
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 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions