diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/atm/nicstar.c | 2 | ||||
-rw-r--r-- | drivers/char/drm/r128_cce.c | 2 | ||||
-rw-r--r-- | drivers/char/tty_io.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c index 38c769f8d2b7..3da804b1627d 100644 --- a/drivers/atm/nicstar.c +++ b/drivers/atm/nicstar.c | |||
@@ -415,7 +415,7 @@ static int __devinit ns_init_card(int i, struct pci_dev *pcidev) | |||
415 | card->pcidev = pcidev; | 415 | card->pcidev = pcidev; |
416 | membase = pci_resource_start(pcidev, 1); | 416 | membase = pci_resource_start(pcidev, 1); |
417 | card->membase = ioremap(membase, NS_IOREMAP_SIZE); | 417 | card->membase = ioremap(membase, NS_IOREMAP_SIZE); |
418 | if (card->membase == 0) | 418 | if (!card->membase) |
419 | { | 419 | { |
420 | printk("nicstar%d: can't ioremap() membase.\n",i); | 420 | printk("nicstar%d: can't ioremap() membase.\n",i); |
421 | error = 3; | 421 | error = 3; |
diff --git a/drivers/char/drm/r128_cce.c b/drivers/char/drm/r128_cce.c index f36adbd3aaf5..c31afbde62e7 100644 --- a/drivers/char/drm/r128_cce.c +++ b/drivers/char/drm/r128_cce.c | |||
@@ -817,7 +817,7 @@ static struct drm_buf *r128_freelist_get(struct drm_device * dev) | |||
817 | for (i = 0; i < dma->buf_count; i++) { | 817 | for (i = 0; i < dma->buf_count; i++) { |
818 | buf = dma->buflist[i]; | 818 | buf = dma->buflist[i]; |
819 | buf_priv = buf->dev_private; | 819 | buf_priv = buf->dev_private; |
820 | if (buf->file_priv == 0) | 820 | if (!buf->file_priv) |
821 | return buf; | 821 | return buf; |
822 | } | 822 | } |
823 | 823 | ||
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 4d3c7018f0c3..98b65a230994 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
@@ -1180,7 +1180,7 @@ struct tty_driver *tty_find_polling_driver(char *name, int *line) | |||
1180 | if (*str == ',') | 1180 | if (*str == ',') |
1181 | str++; | 1181 | str++; |
1182 | if (*str == '\0') | 1182 | if (*str == '\0') |
1183 | str = 0; | 1183 | str = NULL; |
1184 | 1184 | ||
1185 | if (tty_line >= 0 && tty_line <= p->num && p->poll_init && | 1185 | if (tty_line >= 0 && tty_line <= p->num && p->poll_init && |
1186 | !p->poll_init(p, tty_line, str)) { | 1186 | !p->poll_init(p, tty_line, str)) { |