in code that looks like:

igsfb_pci_is_console(pci_chipset_tag_t pc, pcitag_t tag)
	{
		return igsfb_pci_is_console && (tag == igsfb_pci_constag);
	}

delete "igsfb_pci_is_console &&" as the address of igsfb_pci_is_console
is always true.  thanks gcc4.
This commit is contained in:
mrg 2006-05-20 10:31:29 +00:00
parent 4bdc7bbc2d
commit a4efc02595
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: igsfb_pci.c,v 1.13 2006/04/05 01:13:50 uwe Exp $ */ /* $NetBSD: igsfb_pci.c,v 1.14 2006/05/20 10:31:29 mrg Exp $ */
/* /*
* Copyright (c) 2002, 2003 Valeriy E. Ushakov * Copyright (c) 2002, 2003 Valeriy E. Ushakov
@ -31,7 +31,7 @@
* Integraphics Systems IGA 168x and CyberPro series. * Integraphics Systems IGA 168x and CyberPro series.
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: igsfb_pci.c,v 1.13 2006/04/05 01:13:50 uwe Exp $"); __KERNEL_RCSID(0, "$NetBSD: igsfb_pci.c,v 1.14 2006/05/20 10:31:29 mrg Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -136,7 +136,7 @@ static int
igsfb_pci_is_console(pci_chipset_tag_t pc, pcitag_t tag) igsfb_pci_is_console(pci_chipset_tag_t pc, pcitag_t tag)
{ {
return igsfb_pci_is_console && (tag == igsfb_pci_constag); return (tag == igsfb_pci_constag);
} }