diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2005-10-30 18:03:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 20:37:29 -0500 |
commit | 874ec33ff9ccf3651590697a2c2923b911bf31d0 (patch) | |
tree | a51bbb74c76f446342c26201b1e2c82c23c7706f /drivers/char/tpm/tpm_nsc.c | |
parent | b888c87b7498557d1dbb9de3d4b8402b1bb89193 (diff) |
[PATCH] sparse cleanups: NULL pointers, C99 struct init.
Convert most of the remaining "Using plain integer as NULL pointer" sparse
warnings to use NULL. (Not duplicating patches that are already in -mm,
-bird, or -kj.)
Convert isdn driver struct initializer to use C99 syntax.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm/tpm_nsc.c')
-rw-r--r-- | drivers/char/tpm/tpm_nsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_nsc.c b/drivers/char/tpm/tpm_nsc.c index 6adfc07d0fd6..253871b5b1e2 100644 --- a/drivers/char/tpm/tpm_nsc.c +++ b/drivers/char/tpm/tpm_nsc.c | |||
@@ -244,7 +244,7 @@ static struct attribute * nsc_attrs[] = { | |||
244 | &dev_attr_pcrs.attr, | 244 | &dev_attr_pcrs.attr, |
245 | &dev_attr_caps.attr, | 245 | &dev_attr_caps.attr, |
246 | &dev_attr_cancel.attr, | 246 | &dev_attr_cancel.attr, |
247 | 0, | 247 | NULL, |
248 | }; | 248 | }; |
249 | 249 | ||
250 | static struct attribute_group nsc_attr_grp = { .attrs = nsc_attrs }; | 250 | static struct attribute_group nsc_attr_grp = { .attrs = nsc_attrs }; |