summaryrefslogtreecommitdiff
path: root/drivers/fpga/tests/fpga-region-test.c
diff options
context:
space:
mode:
authorMarco Pagani <marpagan@redhat.com>2024-07-25 15:50:30 +0300
committerXu Yilun <yilun.xu@linux.intel.com>2024-08-14 18:51:03 +0300
commit3c2c01849c01e7e3c99124a7fb7f238b7c9a2348 (patch)
treefb682bfb3bc91fba6680d17ea276bbae656d3070 /drivers/fpga/tests/fpga-region-test.c
parentdbcbd3650f305df708b569517c063c7644cf0d89 (diff)
downloadlinux-3c2c01849c01e7e3c99124a7fb7f238b7c9a2348.tar.xz
fpga: Simplify and improve fpga bridge 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-3-marpagan@redhat.com Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'drivers/fpga/tests/fpga-region-test.c')
0 files changed, 0 insertions, 0 deletions