Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1198612
| From | Adrian Remonda <adrianremonda@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCHv3 2/6] Staging: most: Fix "Using plain integer as NULL pointer" warnings |
| Date | 2015-08-03 09:50 +0200 |
| Message-ID | <pTiFt-50N-45@gated-at.bofh.it> (permalink) |
| References | <pTiFs-50N-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch fixes the warning generated by sparse: "Using plain integer
as NULL pointer" by replacing the offending 0 with NULL.
Signed-off-by: Adrian Remonda <adrianremonda@gmail.com>
---
drivers/staging/most/mostcore/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most/mostcore/core.c
index 8d1b68dbeaf8..7e338217779c 100644
--- a/drivers/staging/most/mostcore/core.c
+++ b/drivers/staging/most/mostcore/core.c
@@ -982,7 +982,7 @@ static ssize_t store_add_link(struct most_aim_obj *aim_obj,
if (ret)
return ret;
- if (mdev_devnod == 0 || *mdev_devnod == 0) {
+ if (mdev_devnod == NULL || *mdev_devnod == 0) {
snprintf(devnod_buf, PAGE_SIZE, "%s-%s", mdev, mdev_ch);
mdev_devnod = devnod_buf;
}
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHv3 0/6] Staging: most: several warnings fix reported by sparse Adrian Remonda <adrianremonda@gmail.com> - 2015-08-03 09:50 +0200
[PATCHv3 2/6] Staging: most: Fix "Using plain integer as NULL pointer" warnings Adrian Remonda <adrianremonda@gmail.com> - 2015-08-03 09:50 +0200
[PATCHv3 5/6] Staging: most: Fix "missing static keyword" warnings Adrian Remonda <adrianremonda@gmail.com> - 2015-08-03 09:50 +0200
[PATCHv3 6/6] Staging: most: Fix "Using plain integer as NULL pointer" warnings Adrian Remonda <adrianremonda@gmail.com> - 2015-08-03 09:50 +0200
Re: [PATCHv3 0/6] Staging: most: several warnings fix reported by sparse Dan Carpenter <dan.carpenter@oracle.com> - 2015-08-03 10:40 +0200
Re: [PATCHv3 0/6] Staging: most: several warnings fix reported by sparse AdrianRemonda <adrianremonda@gmail.com> - 2015-08-03 22:40 +0200
csiph-web