summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-01-09 12:13:47 +0100
committerJakub Kicinski <kuba@kernel.org>2022-01-09 16:52:19 -0800
commit948f6b297f6df4abaac207768ca1b7f7a7f55ffb (patch)
tree8f84906e5716e95c93db9de2b5aee9dfcc491024 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
parent942e78916f0c8385c60823082bed0c3f5f0c7fa6 (diff)
downloadlinux-948f6b297f6df4abaac207768ca1b7f7a7f55ffb.tar.gz
linux-948f6b297f6df4abaac207768ca1b7f7a7f55ffb.tar.bz2
linux-948f6b297f6df4abaac207768ca1b7f7a7f55ffb.zip
et131x: Remove useless DMA-32 fallback configuration
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. There is no need to 'rc = -EIO' explicitly. 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/b9aa46e7e5a5aa61f56aac5ea439930f41ad9946.1641726804.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
0 files changed, 0 insertions, 0 deletions