diff options
author | Greg Kroah-Hartman <[email protected]> | 2019-06-12 14:25:56 +0200 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2019-06-14 11:14:58 +0530 |
commit | bea696c5ce1e165a95699acd2c4fc34c43177a08 (patch) | |
tree | 4ad797195de14e2ca97d3ed322d5b2a07ea6194a | |
parent | 8148a87846ebe07e8f34954205bbd8ab40693f4b (diff) |
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 <[email protected]>
Cc: Ashutosh Dixit <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Vinod Koul <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Sudeep Dutt <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
-rw-r--r-- | drivers/dma/mic_x100_dma.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/dma/mic_x100_dma.c b/drivers/dma/mic_x100_dma.c index 6a91e28d537d..584e09661507 100644 --- a/drivers/dma/mic_x100_dma.c +++ b/drivers/dma/mic_x100_dma.c @@ -728,10 +728,8 @@ static int mic_dma_driver_probe(struct mbus_device *mbdev) if (mic_dma_dbg) { mic_dma_dev->dbg_dir = debugfs_create_dir(dev_name(&mbdev->dev), mic_dma_dbg); - if (mic_dma_dev->dbg_dir) - debugfs_create_file("mic_dma_reg", 0444, - mic_dma_dev->dbg_dir, mic_dma_dev, - &mic_dma_reg_fops); + debugfs_create_file("mic_dma_reg", 0444, mic_dma_dev->dbg_dir, + mic_dma_dev, &mic_dma_reg_fops); } return 0; } |