Repository navigation
Commit f51770e
kvm: Make init_rmode_identity_map() return 0 on success.
In init_rmode_identity_map(), there two variables indicating the return
value, r and ret, and it return 0 on error, 1 on success. The function
is only called by vmx_create_vcpu(), and ret is redundant.
This patch removes the redundant variable, and makes init_rmode_identity_map()
return 0 on success, -errno on failure.
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent a255d47 commit f51770e
1 file changed
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3963 | 3963 | | |
3964 | 3964 | | |
3965 | 3965 | | |
3966 | | - | |
| 3966 | + | |
3967 | 3967 | | |
3968 | 3968 | | |
3969 | 3969 | | |
3970 | 3970 | | |
3971 | | - | |
| 3971 | + | |
3972 | 3972 | | |
3973 | 3973 | | |
3974 | 3974 | | |
3975 | 3975 | | |
3976 | | - | |
3977 | | - | |
| 3976 | + | |
3978 | 3977 | | |
3979 | | - | |
3980 | 3978 | | |
3981 | 3979 | | |
3982 | 3980 | | |
3983 | 3981 | | |
3984 | | - | |
| 3982 | + | |
3985 | 3983 | | |
3986 | 3984 | | |
3987 | 3985 | | |
| |||
3998 | 3996 | | |
3999 | 3997 | | |
4000 | 3998 | | |
4001 | | - | |
| 3999 | + | |
4002 | 4000 | | |
4003 | 4001 | | |
4004 | 4002 | | |
4005 | 4003 | | |
4006 | 4004 | | |
4007 | | - | |
| 4005 | + | |
4008 | 4006 | | |
4009 | 4007 | | |
4010 | 4008 | | |
| |||
7756 | 7754 | | |
7757 | 7755 | | |
7758 | 7756 | | |
7759 | | - | |
7760 | | - | |
| 7757 | + | |
| 7758 | + | |
7761 | 7759 | | |
7762 | 7760 | | |
7763 | 7761 | | |
| |||
0 commit comments