From: Hannes Eder <hannes@hanneseder.net>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: trivial@kernel.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org, Al Viro <viro@ZenIV.linux.org.uk>
Subject: [PATCH 04/16 v3] NULL noise: drivers/ide/ide-*.c
Date: Tue, 03 Mar 2009 00:53:43 +0100 [thread overview]
Message-ID: <20090302235343.28697.19909.stgit@f10box.hanneseder.net> (raw)
In-Reply-To: <20090302213436.27388.13985.stgit@f10box.hanneseder.net>
Fix this sparse warnings:
drivers/ide/ide-disk_proc.c:130:11: warning: Using plain integer as NULL pointer
drivers/ide/ide-floppy_proc.c:32:11: warning: Using plain integer as NULL pointer
drivers/ide/ide-proc.c:234:11: warning: Using plain integer as NULL pointer
drivers/ide/ide-tape.c:2141:11: warning: Using plain integer as NULL pointer
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
---
v2: other subject, as suggested by Al Viro
v3: ups. ... send it to the right recipient, fix patch number
---
drivers/ide/ide-disk_proc.c | 2 +-
drivers/ide/ide-floppy_proc.c | 2 +-
drivers/ide/ide-proc.c | 2 +-
drivers/ide/ide-tape.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ide/ide-disk_proc.c b/drivers/ide/ide-disk_proc.c
index 3f2a078..eaea3be 100644
--- a/drivers/ide/ide-disk_proc.c
+++ b/drivers/ide/ide-disk_proc.c
@@ -127,5 +127,5 @@ const struct ide_proc_devset ide_disk_settings[] = {
IDE_PROC_DEVSET(multcount, 0, 16),
IDE_PROC_DEVSET(nowerr, 0, 1),
IDE_PROC_DEVSET(wcache, 0, 1),
- { 0 },
+ { NULL },
};
diff --git a/drivers/ide/ide-floppy_proc.c b/drivers/ide/ide-floppy_proc.c
index 3ec762c..fcd4d81 100644
--- a/drivers/ide/ide-floppy_proc.c
+++ b/drivers/ide/ide-floppy_proc.c
@@ -29,5 +29,5 @@ const struct ide_proc_devset ide_floppy_settings[] = {
IDE_PROC_DEVSET(bios_head, 0, 255),
IDE_PROC_DEVSET(bios_sect, 0, 63),
IDE_PROC_DEVSET(ticks, 0, 255),
- { 0 },
+ { NULL },
};
diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c
index 0ee8887..10a88bf 100644
--- a/drivers/ide/ide-proc.c
+++ b/drivers/ide/ide-proc.c
@@ -231,7 +231,7 @@ static const struct ide_proc_devset ide_generic_settings[] = {
IDE_PROC_DEVSET(pio_mode, 0, 255),
IDE_PROC_DEVSET(unmaskirq, 0, 1),
IDE_PROC_DEVSET(using_dma, 0, 1),
- { 0 },
+ { NULL },
};
static void proc_ide_settings_warn(void)
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 733cb51..cafc67d 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -2142,7 +2142,7 @@ static const struct ide_proc_devset idetape_settings[] = {
__IDE_PROC_DEVSET(speed, 0, 0xffff, NULL, NULL),
__IDE_PROC_DEVSET(tdsc, IDETAPE_DSC_RW_MIN, IDETAPE_DSC_RW_MAX,
mulf_tdsc, divf_tdsc),
- { 0 },
+ { NULL },
};
#endif
next prev parent reply other threads:[~2009-03-03 0:01 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-22 0:00 [PATCH 00/16] fix sparse warnings: Using plain integer as NULL pointer Hannes Eder
2009-02-22 0:00 ` [PATCH 01/16] kexec/i386: " Hannes Eder
2009-02-27 0:48 ` Hannes Eder
2009-02-22 0:01 ` [PATCH 02/16] x86, numa_32.c: fix sparse warning: " Hannes Eder
2009-02-27 0:50 ` Hannes Eder
2009-02-22 0:01 ` [PATCH 03/16] drm: radeon: fix sparse warnings: " Hannes Eder
2009-02-27 0:53 ` Hannes Eder
2009-02-22 0:01 ` [PATCH 04/16] ide: " Hannes Eder
2009-02-27 0:58 ` Hannes Eder
2009-02-22 0:02 ` [PATCH 05/16] dvb: " Hannes Eder
2009-02-27 1:00 ` Hannes Eder
2009-02-22 0:02 ` [PATCH 06/16] MTD: tests: " Hannes Eder
2009-02-27 1:02 ` Hannes Eder
2009-02-27 5:07 ` Artem Bityutskiy
2009-02-22 0:02 ` [PATCH 07/16] panasonic-laptop: fix sparse warning: " Hannes Eder
2009-02-27 1:03 ` Hannes Eder
2009-02-22 0:02 ` [PATCH 08/16] [SCSI] FlashPoint: fix sparse warnings: " Hannes Eder
2009-02-22 0:11 ` [PATCH 08/16 v2] " Hannes Eder
2009-02-22 0:04 ` [PATCH 09/16] usb host: fix sparse warning: " Hannes Eder
2009-02-27 1:04 ` Hannes Eder
2009-02-22 0:04 ` [PATCH 10/16] viafb: " Hannes Eder
2009-02-27 1:07 ` Hannes Eder
2009-02-22 0:05 ` [PATCH 11/16] fs/super.c: " Hannes Eder
2009-02-27 1:10 ` Hannes Eder
2009-02-27 1:28 ` Al Viro
2009-03-02 21:34 ` [PATCH 11/16 v2] NULL noise: drivers/ide/ide-*.c Hannes Eder
2009-03-02 23:53 ` Hannes Eder [this message]
2009-03-05 13:47 ` [PATCH 04/16 v3] " Bartlomiej Zolnierkiewicz
2009-02-22 0:05 ` [PATCH 12/16] reiserfs: fix sparse warning: Using plain integer as NULL pointer Hannes Eder
2009-02-27 1:12 ` Hannes Eder
2009-02-22 0:05 ` [PATCH 13/16] kprobes: fix sparse warnings: " Hannes Eder
2009-02-27 1:13 ` Hannes Eder
2009-02-22 0:05 ` [PATCH 14/16] memcg: fix sparse warning: " Hannes Eder
2009-02-27 1:15 ` Hannes Eder
2009-02-27 1:37 ` KAMEZAWA Hiroyuki
2009-02-22 0:05 ` [PATCH 15/16] ipv6: " Hannes Eder
2009-02-22 7:37 ` David Miller
2009-02-22 0:05 ` [PATCH 16/16] ALSA: msnd: " Hannes Eder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090302235343.28697.19909.stgit@f10box.hanneseder.net \
--to=hannes@hanneseder.net \
--cc=bzolnier@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®