mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 19:55:16 -05:00
[media] smipcie: fix sparse warnings
smipcie.c:950:31: warning: Using plain integer as NULL pointer smipcie.c:973:31: warning: Using plain integer as NULL pointer Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
a8d54e4cdf
commit
358486c426
1 changed files with 2 additions and 2 deletions
|
|
@ -947,7 +947,7 @@ err_del_i2c_adaptor:
|
|||
err_pci_iounmap:
|
||||
iounmap(dev->lmmio);
|
||||
err_kfree:
|
||||
pci_set_drvdata(pdev, 0);
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
kfree(dev);
|
||||
err_pci_disable_device:
|
||||
pci_disable_device(pdev);
|
||||
|
|
@ -970,7 +970,7 @@ static void smi_remove(struct pci_dev *pdev)
|
|||
|
||||
smi_i2c_exit(dev);
|
||||
iounmap(dev->lmmio);
|
||||
pci_set_drvdata(pdev, 0);
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
pci_disable_device(pdev);
|
||||
kfree(dev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue