summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-08-22 16:52:01 +0300
committerBjorn Helgaas <bhelgaas@google.com>2021-08-24 19:43:30 +0300
commit35e7f1be7972be8da9d0a37bd89bcc4b990c6e67 (patch)
treeb89eca52b4757ed8be38b0fecbb457a0cec28df5 /drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
parent1a41fdb805705251fc61715167cadc0829de587a (diff)
downloadlinux-35e7f1be7972be8da9d0a37bd89bcc4b990c6e67.tar.xz
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/e4ac6229-1df5-8760-3a87-1ad0ace87137@gmail.com Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x.h')
0 files changed, 0 insertions, 0 deletions