xs->datalen and reset xs->data to NULL. This prevents a spurious
attempt to setup (dma map, etc) and possibly attempt data tranfser.
In line with what Linux and FreeBSD do as far as I can tell.
Reduces the delay before my DVD starts playing its movie.
Idea to also set xs->data to NULL from matthew@.
"No objection" matthew@
-/* $OpenBSD: cd.c,v 1.180 2010/07/25 16:34:41 krw Exp $ */
+/* $OpenBSD: cd.c,v 1.181 2010/07/28 23:47:43 krw Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
case DVD_INVALIDATE_AGID:
xs->cmd->opcode = GPCMD_REPORT_KEY;
xs->cmd->bytes[9] = 0x3f | (a->lsa.agid << 6);
- xs->datalen = 16;
+ xs->data = NULL;
error = scsi_xs_sync(xs);
scsi_xs_put(xs);