]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qdio: simplify debugfs code
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 21 Feb 2020 09:54:41 +0000 (10:54 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 27 Feb 2020 15:02:21 +0000 (16:02 +0100)
commitbb7cfe5c96b35ecaaf4f285e097c9f575473acd1
tree7138d797e4481abc6d87e3e9ace7067f303ee907
parent5684eff2cb328c83f8ef406f22efdabbc835b981
s390/qdio: simplify debugfs code

There's no need for error handling, the debugfs core is smart enough to
deal with IS_ERR() internally.

This will also keep us from creating the debugfs files if the device
directory doesn't exist. Currently (because irq_ptr->debugfs_dev gets set
to NULL on error) the files would be placed into the debugfs root - without
any association to their parent device.

On teardown, use the debugfs_remove_recursive() helper to avoid keeping
track of each created file/directory.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/qdio.h
drivers/s390/cio/qdio_debug.c
drivers/s390/cio/qdio_setup.c