Commit c33394bd authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Vinod Koul
Browse files

dmaengine: coh901318: no need to cast away call to debugfs_create_file()



No need to check the return value of debugfs_create_file(), so no need
to provide a fake "cast away" of the return value either.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Vinod Koul <vkoul@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: dmaengine@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 635d7302
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1378,9 +1378,7 @@ static int __init init_coh901318_debugfs(void)

	dma_dentry = debugfs_create_dir("dma", NULL);

	(void) debugfs_create_file("status",
				   S_IFREG | S_IRUGO,
				   dma_dentry, NULL,
	debugfs_create_file("status", S_IFREG | S_IRUGO, dma_dentry, NULL,
			    &coh901318_debugfs_status_operations);
	return 0;
}