i2c: eg20t: use NULL instead of 0
sparse rightfully says: drivers/i2c/busses/i2c-eg20t.c:990:59: warning: Using plain integer as NULL pointer Signed-off-by: Wolfram Sang <wolfram@the-dreams.de> Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
This commit is contained in:
parent
199bca2a72
commit
75fb1f25d4
1 changed files with 1 additions and 1 deletions
|
@ -872,7 +872,7 @@ static void __devexit pch_i2c_remove(struct pci_dev *pdev)
|
|||
pci_iounmap(pdev, adap_info->pch_data[0].pch_base_address);
|
||||
|
||||
for (i = 0; i < adap_info->ch_num; i++)
|
||||
adap_info->pch_data[i].pch_base_address = 0;
|
||||
adap_info->pch_data[i].pch_base_address = NULL;
|
||||
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue