From owner-svn-src-head@FreeBSD.ORG Wed Feb 5 08:29:24 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BC9A6DD8; Wed, 5 Feb 2014 08:29:24 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A67151CE1; Wed, 5 Feb 2014 08:29:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s158TOOR029496; Wed, 5 Feb 2014 08:29:24 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s158TOWL029495; Wed, 5 Feb 2014 08:29:24 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201402050829.s158TOWL029495@svn.freebsd.org> From: Hans Petter Selasky Date: Wed, 5 Feb 2014 08:29:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261508 - head/sys/dev/sound/pci/hda X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2014 08:29:24 -0000 Author: hselasky Date: Wed Feb 5 08:29:24 2014 New Revision: 261508 URL: http://svnweb.freebsd.org/changeset/base/261508 Log: Use system macro instead of own hand-rolled one. Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c ============================================================================== --- head/sys/dev/sound/pci/hda/hdaa_patches.c Wed Feb 5 08:27:02 2014 (r261507) +++ head/sys/dev/sound/pci/hda/hdaa_patches.c Wed Feb 5 08:29:24 2014 (r261508) @@ -142,7 +142,6 @@ static const struct { 0, HDAA_QUIRK_OVREF, 0 } }; -#define HDAC_QUIRKS_LEN (sizeof(hdac_quirks) / sizeof(hdac_quirks[0])) static void hdac_pin_patch(struct hdaa_widget *w) @@ -466,7 +465,7 @@ hdaa_patch(struct hdaa_devinfo *devinfo) /* * Quirks */ - for (i = 0; i < HDAC_QUIRKS_LEN; i++) { + for (i = 0; i < nitems(hdac_quirks); i++) { if (!(HDA_DEV_MATCH(hdac_quirks[i].model, subid) && HDA_DEV_MATCH(hdac_quirks[i].id, id) && HDA_DEV_MATCH(hdac_quirks[i].subsystemid, subsystemid)))