svn commit: r251891 - stable/9/lib/libcam

Xin LI delphij at FreeBSD.org
Tue Jun 18 04:05:37 UTC 2013


Author: delphij
Date: Tue Jun 18 04:05:37 2013
New Revision: 251891
URL: http://svnweb.freebsd.org/changeset/base/251891

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/9/lib/libcam/camlib.c
Directory Properties:
  stable/9/lib/libcam/   (props changed)

Modified: stable/9/lib/libcam/camlib.c
==============================================================================
--- stable/9/lib/libcam/camlib.c	Tue Jun 18 04:04:15 2013	(r251890)
+++ stable/9/lib/libcam/camlib.c	Tue Jun 18 04:05:37 2013	(r251891)
@@ -633,7 +633,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-9 mailing list