dma: debug: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 15:21:38 +0000 (16:21 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Feb 2019 09:02:32 +0000 (10:02 +0100)
commit8e4d81b98b7859b120dd142c8634f625db118b30
treeec36145b9a36693a06e3a286980f67af40d5295d
parent55ea54441fb3b6532d5d32417911ff5a10750903
dma: debug: 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 delete the variables for the file dentries for the debugfs entries
as they are never used at all once they are created.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
[hch: moved dma_debug_dent to function scope and renamed it]
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/debug.c