From: Hans Verkuil <hans.verkuil@xxxxxxxxx> 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@xxxxxxxxx> --- drivers/media/pci/smipcie/smipcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/smipcie/smipcie.c b/drivers/media/pci/smipcie/smipcie.c index d1c1463..8dc6afa 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); } -- 2.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html