mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-10 19:47:12 +00:00
As stated in [1], dma_set_mask() with a 64-bit mask never fails if dev->dma_mask is non-NULL. So, if it fails, the 32 bits case will also fail for the same reason. Moreover, dma_set_mask_and_coherent() returns 0 or -EIO, so the return code of the function can be used directly. Finally, inline bnx2x_set_coherency_mask() because it is now only a wrapper for a single dma_set_mask_and_coherent() call. Simplify code and remove some dead code accordingly. [1]: https://lkml.org/lkml/2021/6/7/398 Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/29608a525876afddceabf8f11b2ba606da8748fc.1641730747.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| bnx2x_cmn.c | ||
| bnx2x_cmn.h | ||
| bnx2x_dcb.c | ||
| bnx2x_dcb.h | ||
| bnx2x_dump.h | ||
| bnx2x_ethtool.c | ||
| bnx2x_fw_defs.h | ||
| bnx2x_fw_file_hdr.h | ||
| bnx2x_hsi.h | ||
| bnx2x_init_ops.h | ||
| bnx2x_init.h | ||
| bnx2x_link.c | ||
| bnx2x_link.h | ||
| bnx2x_main.c | ||
| bnx2x_mfw_req.h | ||
| bnx2x_reg.h | ||
| bnx2x_self_test.c | ||
| bnx2x_sp.c | ||
| bnx2x_sp.h | ||
| bnx2x_sriov.c | ||
| bnx2x_sriov.h | ||
| bnx2x_stats.c | ||
| bnx2x_stats.h | ||
| bnx2x_vfpf.c | ||
| bnx2x_vfpf.h | ||
| bnx2x.h | ||
| Makefile | ||