File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -453,36 +453,32 @@ static void kvm_s390_cpu_feat_init(void)
453
453
454
454
int kvm_arch_init (void * opaque )
455
455
{
456
- int rc ;
456
+ int rc = - ENOMEM ;
457
457
458
458
kvm_s390_dbf = debug_register ("kvm-trace" , 32 , 1 , 7 * sizeof (long ));
459
459
if (!kvm_s390_dbf )
460
460
return - ENOMEM ;
461
461
462
- if (debug_register_view (kvm_s390_dbf , & debug_sprintf_view )) {
463
- rc = - ENOMEM ;
464
- goto out_debug_unreg ;
465
- }
462
+ if (debug_register_view (kvm_s390_dbf , & debug_sprintf_view ))
463
+ goto out ;
466
464
467
465
kvm_s390_cpu_feat_init ();
468
466
469
467
/* Register floating interrupt controller interface. */
470
468
rc = kvm_register_device_ops (& kvm_flic_ops , KVM_DEV_TYPE_FLIC );
471
469
if (rc ) {
472
470
pr_err ("A FLIC registration call failed with rc=%d\n" , rc );
473
- goto out_debug_unreg ;
471
+ goto out ;
474
472
}
475
473
476
474
rc = kvm_s390_gib_init (GAL_ISC );
477
475
if (rc )
478
- goto out_gib_destroy ;
476
+ goto out ;
479
477
480
478
return 0 ;
481
479
482
- out_gib_destroy :
483
- kvm_s390_gib_destroy ();
484
- out_debug_unreg :
485
- debug_unregister (kvm_s390_dbf );
480
+ out :
481
+ kvm_arch_exit ();
486
482
return rc ;
487
483
}
488
484
You can’t perform that action at this time.
0 commit comments