From: Hans Verkuil Date: Wed, 5 Nov 2014 07:52:10 +0000 (-0300) Subject: [media] smipcie: fix sparse warnings X-Git-Tag: v3.19-rc1~126^2~203 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=358486c426a393ad701f7a676608d36b72dd3b97;p=karo-tx-linux.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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: 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); }