Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2012 12:03:11 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241577 - head/sys/dev/etherswitch/arswitch
Message-ID:  <201210151203.q9FC3Bfp083382@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ray
Date: Mon Oct 15 12:03:11 2012
New Revision: 241577
URL: http://svn.freebsd.org/changeset/base/241577

Log:
  Defaulting to id "0" if ar7240_probe(dev) success, fix warning when building
  with DEBUG.
  
  Submitted by:	Luiz Otavio O Souza
  Approved by:	adrian (mentor)

Modified:
  head/sys/dev/etherswitch/arswitch/arswitch.c

Modified: head/sys/dev/etherswitch/arswitch/arswitch.c
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitch.c	Mon Oct 15 08:21:49 2012	(r241576)
+++ head/sys/dev/etherswitch/arswitch/arswitch.c	Mon Oct 15 12:03:11 2012	(r241577)
@@ -102,6 +102,7 @@ arswitch_probe(device_t dev)
 	if (ar7240_probe(dev) == 0) {
 		chipname = "AR7240";
 		sc->sc_switchtype = AR8X16_SWITCH_AR7240;
+		id = 0;
 		goto done;
 	}
 



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