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

dmaengine: mic_x100_dma: no need to check return value of debugfs_create functions

When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.

Cc: Sudeep Dutt <sudeep.dutt@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
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>
Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Greg Kroah-Hartman and committed by
Vinod Koul
bea696c5 8148a878

+2 -4
+2 -4
drivers/dma/mic_x100_dma.c
··· 728 728 if (mic_dma_dbg) { 729 729 mic_dma_dev->dbg_dir = debugfs_create_dir(dev_name(&mbdev->dev), 730 730 mic_dma_dbg); 731 - if (mic_dma_dev->dbg_dir) 732 - debugfs_create_file("mic_dma_reg", 0444, 733 - mic_dma_dev->dbg_dir, mic_dma_dev, 734 - &mic_dma_reg_fops); 731 + debugfs_create_file("mic_dma_reg", 0444, mic_dma_dev->dbg_dir, 732 + mic_dma_dev, &mic_dma_reg_fops); 735 733 } 736 734 return 0; 737 735 }