Skip to contentSkip to conversation

KVM: vmx: remove unreachable statement in vmx_get_msr_feature()

PATCH linmiaohe 2 participants 2 messages Dec 6, 2019 KVM

lore
Share & tools
lore

linmiaohe

author
#0 lore raw
Quoted 9 lines · Wanpeng Li
Quoted 6 lines
Quoted 5 lines

I personally just prefer to remove the “default” case and change this “return 0;” to “return 1;”. But it’s a matter of taste of course.

Yes. As what " Turnip greens, all have love " said. ^_^

Actually it is a great appreciated to introduce something more useful instead of tons of cleanups, I saw guys did one cleanup and can incur several bugs before.

I'd like to introduce something more useful, but side corner cleanups may be hard to found out something to introduce. And such cleanups can also be validated by code inspection to avoid something bad. Many thanks.

maintainer
#1 lore raw
Quoted 6 lines · linmiaohe
Quoted 5 lines · Wanpeng Li
Quoted 5 lines
Quoted 5 lines

I personally just prefer to remove the “default” case and change this “return 0;” to “return 1;”. But it’s a matter of taste of course.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Yes. As what " Turnip greens, all have love " said. ^_^

Actually it is a great appreciated to introduce something more useful instead of tons of cleanups, I saw guys did one cleanup and can incur several bugs before.

I'd like to introduce something more useful, but side corner cleanups may be hard to found out something to introduce. And such cleanups can also be validated by code inspection to avoid something bad. Many thanks.

Yeah, I think you have been doing a good job. Usually, when the cleanups introduce bugs there are many other "suspicious" things. For me it's clear that you're learning the code and not just messing around.

Paolo