Commit 68d9787
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>1 parent f20e232 commit 68d9787
2 files changed
Lines changed: 2 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | 687 | | |
692 | 688 | | |
693 | 689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
391 | | - | |
| 389 | + | |
392 | 390 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | 391 | | |
400 | 392 | | |
401 | 393 | | |
| |||
411 | 403 | | |
412 | 404 | | |
413 | 405 | | |
414 | | - | |
415 | | - | |
416 | 406 | | |
417 | 407 | | |
418 | 408 | | |
| |||
430 | 420 | | |
431 | 421 | | |
432 | 422 | | |
433 | | - | |
| 423 | + | |
434 | 424 | | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | 425 | | |
439 | 426 | | |
440 | 427 | | |
| |||
0 commit comments