]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: Don't bother checking the return value of debugfs_create*
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 29 Mar 2022 15:46:16 +0000 (21:16 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 11 Apr 2022 16:04:40 +0000 (10:04 -0600)
commit90b4c0b59d99506c81d025fed5871a0723cd5dac
treebc300add930a4338688d72fe3a0629d807f19c74
parent92da3313c3b539da636b1b46062692cd16114366
remoteproc: Don't bother checking the return value of debugfs_create*

DebugFS APIs are designed to return only the error pointers and not NULL
in the case of failure. So these return pointers are safe to be passed on
to the successive debugfs_create* APIs.

Therefore, let's just get rid of the checks.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20220329154616.58902-1-manivannan.sadhasivam@linaro.org
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_debugfs.c