Skip to content

Commit cdf9d6b

Browse files
AI-Memorywenlingz
authored andcommitted
devicemodel: refactor CMD_OPT_LAPIC_PT case branch
This patch refactors the CMD_OPT_LAPIC_PT case branch to explicity add the dependency of option RTVM at the same branch, it is decoupled from the next case branch to comply with strict code standard and improve the code readability. Tracked-On: #4283 Signed-off-by: Gary <gordon.king@intel.com>
1 parent 77c3ce0 commit cdf9d6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

devicemodel/core/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,8 @@ main(int argc, char *argv[])
907907
break;
908908
case CMD_OPT_LAPIC_PT:
909909
lapic_pt = true;
910+
is_rtvm = true;
911+
break;
910912
case CMD_OPT_RTVM:
911913
is_rtvm = true;
912914
break;

0 commit comments

Comments
 (0)