projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
199bca2
)
i2c: eg20t: use NULL instead of 0
author
Wolfram Sang
<wolfram@the-dreams.de>
Thu, 19 Apr 2012 14:53:49 +0000
(16:53 +0200)
committer
Wolfram Sang
<w.sang@pengutronix.de>
Sat, 12 May 2012 12:28:13 +0000
(14:28 +0200)
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>
drivers/i2c/busses/i2c-eg20t.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-eg20t.c
b/drivers/i2c/busses/i2c-eg20t.c
index 9da12cecb3bb06531eb45ea8531b3b1cbc512651..6e9e0759f7df0d8b5613deb933b40cebb718d883 100644
(file)
--- a/
drivers/i2c/busses/i2c-eg20t.c
+++ b/
drivers/i2c/busses/i2c-eg20t.c
@@
-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);