tree: git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git for-linus head: 638cf4f7510d6af6932dadf2844817f609b3cf3f commit: c0f28ce66ecfd9fa0ae662a2c7f3e68e537e77f4 [25/35] dmaengine: ioatdma: move all the init routines coccinelle warnings: (new ones prefixed by >>) >> drivers/dma/ioat/init.c:1018:1-3: WARNING: end returns can be simpified --- drivers/dma/ioat/init.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c index 5922221..60a7c32 100644 --- a/drivers/dma/ioat/init.c +++ b/drivers/dma/ioat/init.c @@ -1008,16 +1008,15 @@ out: static int ioat3_dma_self_test(struct ioatdma_device *ioat_dma) { - int rc = ioat_dma_self_test(ioat_dma); + int rc; + rc = ioat_dma_self_test(ioat_dma); if (rc) return rc; rc = ioat_xor_val_self_test(ioat_dma); - if (rc) - return rc; - return 0; + return rc; } static void ioat_intr_quirk(struct ioatdma_device *ioat_dma) -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html