dmaengine: pxa_dma: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Jun 2019 12:25:55 +0000 (14:25 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 14 Jun 2019 05:44:58 +0000 (11:14 +0530)
commit8148a87846ebe07e8f34954205bbd8ab40693f4b
tree74c40f13e95ef7773f154863ae5782bae6cddb62
parentc33394bd006c2efa742b204e740c098763972dc9
dmaengine: pxa_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.

Also, because there is no need to save the file dentry, remove the
variable that was saving it as it was never even being used once set.

Cc: Daniel Mack <daniel@zonque.org>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
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>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/pxa_dma.c