aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_frontend_ioctl.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-09-20 10:40:30 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-09-20 10:40:30 +0000
commitb22213694ed73221ad838fae58b15d4f0eaf4647 (patch)
tree296be08f3a66aff31590e456e566f7a10c8079ba /sys/cam/ctl/ctl_frontend_ioctl.c
parent6874645fa9879ab2f06ff9cf9ee70ec34b72e65e (diff)
downloadsrc-b22213694ed73221ad838fae58b15d4f0eaf4647.tar.gz
src-b22213694ed73221ad838fae58b15d4f0eaf4647.zip
Remove couple excess SGLIST I/O flags.
Those flags duplicated respective (sg_entries > 0) values.
Notes
Notes: svn path=/head/; revision=288020
Diffstat (limited to 'sys/cam/ctl/ctl_frontend_ioctl.c')
-rw-r--r--sys/cam/ctl/ctl_frontend_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_frontend_ioctl.c b/sys/cam/ctl/ctl_frontend_ioctl.c
index fc3d15a4b8c5..d58fc6aa92d0 100644
--- a/sys/cam/ctl/ctl_frontend_ioctl.c
+++ b/sys/cam/ctl/ctl_frontend_ioctl.c
@@ -149,7 +149,7 @@ ctl_ioctl_do_datamove(struct ctl_scsiio *ctsio)
* To simplify things here, if we have a single buffer, stick it in
* a S/G entry and just make it a single entry S/G list.
*/
- if (ctsio->io_hdr.flags & CTL_FLAG_EDPTR_SGLIST) {
+ if (ctsio->ext_sg_entries > 0) {
int len_seen;
ext_sglen = ctsio->ext_sg_entries * sizeof(*ext_sglist);