diff options
author | delphij <delphij@FreeBSD.org> | 2013-06-03 21:52:19 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-06-03 21:52:19 +0000 |
commit | 8e01202978292cd2dad187294910859e114015f0 (patch) | |
tree | 1aefe84d15bfda7c8461edf02ffcd88c8bc888c3 /lib/libcam/camlib.c | |
parent | cdc15b48716c51bc0db78524d5df39067437ce21 (diff) | |
download | FreeBSD-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/camlib.c')
-rw-r--r-- | lib/libcam/camlib.c | 2 |
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; |