Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Greg Kroah-Hartman and committed by
Vinod Koul
c33394bd 635d7302

+2 -4
+2 -4
drivers/dma/coh901318.c
··· 1378 1378 1379 1379 dma_dentry = debugfs_create_dir("dma", NULL); 1380 1380 1381 - (void) debugfs_create_file("status", 1382 - S_IFREG | S_IRUGO, 1383 - dma_dentry, NULL, 1384 - &coh901318_debugfs_status_operations); 1381 + debugfs_create_file("status", S_IFREG | S_IRUGO, dma_dentry, NULL, 1382 + &coh901318_debugfs_status_operations); 1385 1383 return 0; 1386 1384 } 1387 1385