ソースを参照

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
Dustin Brown 6 年 前
コミット
45afe042a2
1 ファイル変更1 行追加10 行削除
  1. 1 10
      dsc/test/wlan_dsc_test.c

+ 1 - 10
dsc/test/wlan_dsc_test.c

@@ -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;
 }