Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2018 16:05:39 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341696 - head/sys/dev/acpica
Message-ID:  <201812071605.wB7G5dFx061877@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri Dec  7 16:05:39 2018
New Revision: 341696
URL: https://svnweb.freebsd.org/changeset/base/341696

Log:
  acpi_MatchHid: use ACPI_MATCHHID_NOMATCH instead of FALSE
  
  Binary representation of both is the same (zero), but
  ACPI_MATCHHID_NOMATCH is better for consistency.
  
  MFC after:	4 days
  X-MFC with:	r339754

Modified:
  head/sys/dev/acpica/acpi.c

Modified: head/sys/dev/acpica/acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi.c	Fri Dec  7 16:01:51 2018	(r341695)
+++ head/sys/dev/acpica/acpi.c	Fri Dec  7 16:05:39 2018	(r341696)
@@ -2290,7 +2290,7 @@ acpi_MatchHid(ACPI_HANDLE h, const char *hid) 
 	ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
 	return (ACPI_MATCHHID_NOMATCH);
 
-    ret = FALSE;
+    ret = ACPI_MATCHHID_NOMATCH;
     if ((devinfo->Valid & ACPI_VALID_HID) != 0 &&
 	strcmp(hid, devinfo->HardwareId.String) == 0)
 	    ret = ACPI_MATCHHID_HID;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812071605.wB7G5dFx061877>