diff options
author | 2015-01-04 08:42:04 +0000 | |
---|---|---|
committer | 2015-01-04 08:42:04 +0000 | |
commit | 832e293a2579cc5b717f2aaa92721b40d5d00918 (patch) | |
tree | 1f94c3d524ad555226d5d66f0aab6c815abd1b41 | |
parent | Fix error handling for re_encap() within re_start() and some tidying up. (diff) | |
download | wireguard-openbsd-832e293a2579cc5b717f2aaa92721b40d5d00918.tar.xz wireguard-openbsd-832e293a2579cc5b717f2aaa92721b40d5d00918.zip |
return 0 for success in ucycom_param() instead of uninitialised memory
-rw-r--r-- | sys/dev/usb/ucycom.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/ucycom.c b/sys/dev/usb/ucycom.c index 50c31f32b33..a75c1fd484f 100644 --- a/sys/dev/usb/ucycom.c +++ b/sys/dev/usb/ucycom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ucycom.c,v 1.31 2014/12/11 18:55:15 mpi Exp $ */ +/* $OpenBSD: ucycom.c,v 1.32 2015/01/04 08:42:04 jsg Exp $ */ /* $NetBSD: ucycom.c,v 1.3 2005/08/05 07:27:47 skrll Exp $ */ /* @@ -380,7 +380,6 @@ ucycom_param(void *addr, int portno, struct termios *t) uint8_t report[5]; uint32_t baud = 0; uint8_t cfg; - int err; if (usbd_is_dying(sc->sc_udev)) return (EIO); @@ -452,7 +451,7 @@ ucycom_param(void *addr, int portno, struct termios *t) sc->sc_hdev.sc_report_id, report, sc->sc_flen) != sc->sc_flen) return EIO; sc->sc_baud = baud; - return (err); + return (0); } void |