summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40evf/i40e_common.c
diff options
context:
space:
mode:
authorJean Sacren2014-03-25 05:30:27 +0100
committerJeff Kirsher2014-04-01 00:48:02 +0200
commite3e3bfdd1d2ad4ac2020e681f3cb1e172f343810 (patch)
treeb30bc5d138d2aa618828bb67e208335cf1c3e6d4 /drivers/net/ethernet/intel/i40evf/i40e_common.c
parenti40e: fix function kernel doc description (diff)
downloadkernel-qcow2-linux-e3e3bfdd1d2ad4ac2020e681f3cb1e172f343810.tar.gz
kernel-qcow2-linux-e3e3bfdd1d2ad4ac2020e681f3cb1e172f343810.tar.xz
kernel-qcow2-linux-e3e3bfdd1d2ad4ac2020e681f3cb1e172f343810.zip
i40e/i40evf: fix error checking path
The commit 6494294f277fd ("i40e/i40evf: Use dma_set_mask_and_coherent") uses dma_set_mask_and_coherent() to replace dma_set_coherent_mask() for the benefit of return error. The conversion brings some confusion in error checking as whether against DMA_BIT_MASK(64) or DMA_BIT_MASK(32). For one, if error is zero, the check will be against DMA_BIT_MASK(64) twice. Fix this error checking by binding the check to the pertinent one. Cc: Mitch Williams <mitch.a.williams@intel.com> Signed-off-by: Jean Sacren <sakiwit@gmail.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf/i40e_common.c')
0 files changed, 0 insertions, 0 deletions