diff options
author | Heiner Kallweit <[email protected]> | 2021-08-22 15:52:01 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-08-24 11:43:30 -0500 |
commit | 35e7f1be7972be8da9d0a37bd89bcc4b990c6e67 (patch) | |
tree | b89eca52b4757ed8be38b0fecbb457a0cec28df5 /lib/test_overflow.c | |
parent | 1a41fdb805705251fc61715167cadc0829de587a (diff) |
bnx2: Replace open-coded byte swapping with swab32s()
Read NVRAM directly into buffer and use swab32s() to byte swap it in-place
instead of reading it into the end of the buffer and swapping it manually
while copying it.
[bhelgaas: commit log]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions