qcacld-3.0: Use vtable for unit test ioctl
Convert the current hard-coded list of unit-test callbacks in hdd_we_unit_test() to a vtable. This streamlines future additions. Change-Id: I216bbb6699ae50eaa96ac559999cb42ba080867c CRs-Fixed: 2358606
This commit is contained in:
@@ -552,21 +552,12 @@ uint32_t dsc_unit_test(void)
|
||||
{
|
||||
uint32_t errors = 0;
|
||||
|
||||
dsc_debug("Starting dsc component tests");
|
||||
|
||||
errors += dsc_test_create_destroy();
|
||||
errors += dsc_test_driver_trans_blocks();
|
||||
errors += dsc_test_psoc_trans_blocks();
|
||||
errors += dsc_test_vdev_trans_blocks();
|
||||
errors += dsc_test_trans_wait();
|
||||
|
||||
if (errors) {
|
||||
dsc_err("FAIL: %u dsc component tests failed!", errors);
|
||||
return errors;
|
||||
}
|
||||
|
||||
dsc_info("PASS: dsc component tests passed successfully");
|
||||
|
||||
return 0;
|
||||
return errors;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user