]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dmaengine: amba-pl08x: no need to cast away call to debugfs_create_file()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Jun 2019 12:25:52 +0000 (14:25 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 14 Jun 2019 05:44:57 +0000 (11:14 +0530)
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>
drivers/dma/amba-pl08x.c

index 8cfc753ad4b0f70428e7b4cc8751b34b6ff8384f..ccd983c6d46c7c1b630c4a25d9cfa490a7ca8aa4 100644 (file)
@@ -2520,9 +2520,8 @@ DEFINE_SHOW_ATTRIBUTE(pl08x_debugfs);
 static void init_pl08x_debugfs(struct pl08x_driver_data *pl08x)
 {
        /* Expose a simple debugfs interface to view all clocks */
-       (void) debugfs_create_file(dev_name(&pl08x->adev->dev),
-                       S_IFREG | S_IRUGO, NULL, pl08x,
-                       &pl08x_debugfs_fops);
+       debugfs_create_file(dev_name(&pl08x->adev->dev), S_IFREG | S_IRUGO,
+                           NULL, pl08x, &pl08x_debugfs_fops);
 }
 
 #else