From 35e1b8aa387b3f4b33bf45520956708cedb5742a Mon Sep 17 00:00:00 2001 From: plunky Date: Sat, 23 Sep 2006 16:08:43 +0000 Subject: [PATCH] return ENOTCONN when not connected, rather than EINVAL --- sys/dev/bluetooth/btsco.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/bluetooth/btsco.c b/sys/dev/bluetooth/btsco.c index eb7357adafe4..9d51da70d1a2 100644 --- a/sys/dev/bluetooth/btsco.c +++ b/sys/dev/bluetooth/btsco.c @@ -1,4 +1,4 @@ -/* $NetBSD: btsco.c,v 1.4 2006/09/11 21:59:09 plunky Exp $ */ +/* $NetBSD: btsco.c,v 1.5 2006/09/23 16:08:43 plunky Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.4 2006/09/11 21:59:09 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.5 2006/09/23 16:08:43 plunky Exp $"); #include #include @@ -832,7 +832,7 @@ btsco_start_input(void *hdl, void *block, int blksize, device_xname((struct device *)sc), blksize); if (sc->sc_sco == NULL) - return EINVAL; + return ENOTCONN; sc->sc_rx_want = blksize; sc->sc_rx_block = block;