diff options
author | Marco Pagani <marpagan@redhat.com> | 2024-07-25 14:50:29 +0200 |
---|---|---|
committer | Xu Yilun <yilun.xu@linux.intel.com> | 2024-08-14 23:50:01 +0800 |
commit | dbcbd3650f305df708b569517c063c7644cf0d89 (patch) | |
tree | d2184a73ca646416356799c7de1a8725a5b5346b /drivers/fpga/tests/fpga-bridge-test.c | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) |
fpga: Simplify and improve fpga mgr test using deferred actions
Use deferred actions to simplify the test suite and avoid potential memory
leaks when test cases fail. Remove unnecessary calls to
kunit_device_unregister() since kunit devices are tied to the test context
and released by a deferred action when the test is completed.
Signed-off-by: Marco Pagani <marpagan@redhat.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20240725125031.308195-2-marpagan@redhat.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions