From: Jean Sacren Date: Tue, 25 Mar 2014 04:30:27 +0000 (+0000) Subject: i40e/i40evf: fix error checking path X-Git-Tag: v3.15-rc1~113^2~16^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3e3bfdd1d2ad4ac2020e681f3cb1e172f343810;p=pandora-kernel.git 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 Signed-off-by: Jean Sacren Tested-by: Kavindya Deegala Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed