Skip to content

Commit

Permalink
i2c: eg20t: use NULL instead of 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wolfram Sang authored and Wolfram Sang committed May 12, 2012
1 parent 199bca2 commit 75fb1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-eg20t.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 75fb1f2

Please sign in to comment.