summaryrefslogtreecommitdiffstats
path: root/lib/libcam
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-06-03 21:52:19 +0000
committerdelphij <delphij@FreeBSD.org>2013-06-03 21:52:19 +0000
commit8e01202978292cd2dad187294910859e114015f0 (patch)
tree1aefe84d15bfda7c8461edf02ffcd88c8bc888c3 /lib/libcam
parentcdc15b48716c51bc0db78524d5df39067437ce21 (diff)
downloadFreeBSD-src-8e01202978292cd2dad187294910859e114015f0.zip
FreeBSD-src-8e01202978292cd2dad187294910859e114015f0.tar.gz
Fix a typo: XPORT_SPI should be tested against transport, nor protocol.
Submitted by: Sascha Wildner <swildner dragonflybsd org> Reviewed by: mjacob MFC after: 2 weeks
Diffstat (limited to 'lib/libcam')
-rw-r--r--lib/libcam/camlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcam/camlib.c b/lib/libcam/camlib.c
index ae35fb9..cd59922 100644
--- a/lib/libcam/camlib.c
+++ b/lib/libcam/camlib.c
@@ -633,7 +633,7 @@ cam_real_open_device(const char *path, int flags, struct cam_device *device,
"%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;
OpenPOWER on IntegriCloud