svn commit: r251892 - stable/8/lib/libcam

Xin LI delphij at FreeBSD.org
Tue Jun 18 04:06:13 UTC 2013


Author: delphij
Date: Tue Jun 18 04:06:12 2013
New Revision: 251892
URL: http://svnweb.freebsd.org/changeset/base/251892

Log:
  MFC r251349:
  
  Fix a typo: XPORT_SPI should be tested against transport, nor protocol.
  
  Submitted by:	Sascha Wildner <swildner dragonflybsd org>
  Reviewed by:	mjacob

Modified:
  stable/8/lib/libcam/camlib.c
Directory Properties:
  stable/8/lib/libcam/   (props changed)

Modified: stable/8/lib/libcam/camlib.c
==============================================================================
--- stable/8/lib/libcam/camlib.c	Tue Jun 18 04:05:37 2013	(r251891)
+++ stable/8/lib/libcam/camlib.c	Tue Jun 18 04:06:12 2013	(r251892)
@@ -686,7 +686,7 @@ cam_real_open_device(const char *path, i
 			"%s: %s", func_name, func_name, strerror(errno));
 		goto crod_bailout;
 	}
-	if (ccb.cts.protocol == XPORT_SPI) {
+	if (ccb.cts.transport == XPORT_SPI) {
 		struct ccb_trans_settings_spi *spi =
 		    &ccb.cts.xport_specific.spi;
 		device->sync_period = spi->sync_period;


More information about the svn-src-stable mailing list