Skip to content

Commit cb6969e

Browse files
hharrisontorvalds
authored andcommitted
misc: fix integer as NULL pointer warnings
drivers/md/raid10.c:889:17: warning: Using plain integer as NULL pointer drivers/media/video/cx18/cx18-driver.c:616:12: warning: Using plain integer as NULL pointer sound/oss/kahlua.c:70:12: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Neil Brown <neilb@suse.de> Cc: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8594303 commit cb6969e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/md/raid10.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ static int make_request(struct request_queue *q, struct bio * bio)
886886
*/
887887
raid10_find_phys(conf, r10_bio);
888888
retry_write:
889-
blocked_rdev = 0;
889+
blocked_rdev = NULL;
890890
rcu_read_lock();
891891
for (i = 0; i < conf->copies; i++) {
892892
int d = r10_bio->devs[i].devnum;

‎drivers/media/video/cx18/cx18-driver.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static int __devinit cx18_probe(struct pci_dev *dev,
613613
}
614614

615615
cx = kzalloc(sizeof(struct cx18), GFP_ATOMIC);
616-
if (cx == 0) {
616+
if (!cx) {
617617
spin_unlock(&cx18_cards_lock);
618618
return -ENOMEM;
619619
}

‎sound/oss/kahlua.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static int __devinit probe_one(struct pci_dev *pdev, const struct pci_device_id
6767
return 1;
6868

6969
mem = ioremap(base, 128);
70-
if(mem == 0UL)
70+
if (!mem)
7171
return 1;
7272
map = readw(mem + 0x18); /* Read the SMI enables */
7373
iounmap(mem);

0 commit comments

Comments
 (0)