diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-11-05 02:52:10 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-05 06:08:13 -0500 |
commit | 358486c426a393ad701f7a676608d36b72dd3b97 (patch) | |
tree | d8d489fe808715ab1615a72531b5721bd8cd4af1 | |
parent | a8d54e4cdfb8f903ee53148559254b0e3263669e (diff) |
[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 <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/pci/smipcie/smipcie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/smipcie/smipcie.c b/drivers/media/pci/smipcie/smipcie.c index d1c14631a101..8dc6afa50edb 100644 --- a/drivers/media/pci/smipcie/smipcie.c +++ b/drivers/media/pci/smipcie/smipcie.c | |||
@@ -947,7 +947,7 @@ err_del_i2c_adaptor: | |||
947 | err_pci_iounmap: | 947 | err_pci_iounmap: |
948 | iounmap(dev->lmmio); | 948 | iounmap(dev->lmmio); |
949 | err_kfree: | 949 | err_kfree: |
950 | pci_set_drvdata(pdev, 0); | 950 | pci_set_drvdata(pdev, NULL); |
951 | kfree(dev); | 951 | kfree(dev); |
952 | err_pci_disable_device: | 952 | err_pci_disable_device: |
953 | pci_disable_device(pdev); | 953 | pci_disable_device(pdev); |
@@ -970,7 +970,7 @@ static void smi_remove(struct pci_dev *pdev) | |||
970 | 970 | ||
971 | smi_i2c_exit(dev); | 971 | smi_i2c_exit(dev); |
972 | iounmap(dev->lmmio); | 972 | iounmap(dev->lmmio); |
973 | pci_set_drvdata(pdev, 0); | 973 | pci_set_drvdata(pdev, NULL); |
974 | pci_disable_device(pdev); | 974 | pci_disable_device(pdev); |
975 | kfree(dev); | 975 | kfree(dev); |
976 | } | 976 | } |