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

dmaengine: amba-pl08x: 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: Dan Williams <dan.j.williams@intel.com>
Cc: Vinod Koul <vkoul@kernel.org>
Cc: dmaengine@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Greg Kroah-Hartman and committed by
Vinod Koul
718745f8 83eb5cfc

+2 -3
+2 -3
drivers/dma/amba-pl08x.c
··· 2520 2520 static void init_pl08x_debugfs(struct pl08x_driver_data *pl08x) 2521 2521 { 2522 2522 /* Expose a simple debugfs interface to view all clocks */ 2523 - (void) debugfs_create_file(dev_name(&pl08x->adev->dev), 2524 - S_IFREG | S_IRUGO, NULL, pl08x, 2525 - &pl08x_debugfs_fops); 2523 + debugfs_create_file(dev_name(&pl08x->adev->dev), S_IFREG | S_IRUGO, 2524 + NULL, pl08x, &pl08x_debugfs_fops); 2526 2525 } 2527 2526 2528 2527 #else