File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ static int zpci_setup_aipb(u8 nisc)
58
58
if (!zpci_aipb )
59
59
return - ENOMEM ;
60
60
61
- aift -> sbv = airq_iv_create (ZPCI_NR_DEVICES , AIRQ_IV_ALLOC , 0 );
61
+ aift -> sbv = airq_iv_create (ZPCI_NR_DEVICES , AIRQ_IV_ALLOC , NULL );
62
62
if (!aift -> sbv ) {
63
63
rc = - ENOMEM ;
64
64
goto free_aipb ;
@@ -373,7 +373,7 @@ static int kvm_s390_pci_aif_disable(struct zpci_dev *zdev, bool force)
373
373
gaite -> gisc = 0 ;
374
374
gaite -> aisbo = 0 ;
375
375
gaite -> gisa = 0 ;
376
- aift -> kzdev [zdev -> aisb ] = 0 ;
376
+ aift -> kzdev [zdev -> aisb ] = NULL ;
377
377
/* Clear zdev info */
378
378
airq_iv_free_bit (aift -> sbv , zdev -> aisb );
379
379
airq_iv_release (zdev -> aibv );
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ extern struct zpci_aift *aift;
46
46
static inline struct kvm * kvm_s390_pci_si_to_kvm (struct zpci_aift * aift ,
47
47
unsigned long si )
48
48
{
49
- if (!IS_ENABLED (CONFIG_VFIO_PCI_ZDEV_KVM ) || aift -> kzdev == 0 ||
50
- aift -> kzdev [si ] == 0 )
51
- return 0 ;
49
+ if (!IS_ENABLED (CONFIG_VFIO_PCI_ZDEV_KVM ) || ! aift -> kzdev ||
50
+ ! aift -> kzdev [si ])
51
+ return NULL ;
52
52
return aift -> kzdev [si ]-> kvm ;
53
53
};
54
54
You can’t perform that action at this time.
0 commit comments