artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7f5ae
)
avoid returning uninitialised var in hidpp_send_report()
author
jsg
<jsg@openbsd.org>
Tue, 21 Dec 2021 07:44:22 +0000
(07:44 +0000)
committer
jsg
<jsg@openbsd.org>
Tue, 21 Dec 2021 07:44:22 +0000
(07:44 +0000)
ok anton@
sys/dev/usb/uhidpp.c
patch
|
blob
|
history
diff --git
a/sys/dev/usb/uhidpp.c
b/sys/dev/usb/uhidpp.c
index
14ec611
..
d953c7a
100644
(file)
--- a/
sys/dev/usb/uhidpp.c
+++ b/
sys/dev/usb/uhidpp.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: uhidpp.c,v 1.2
0 2021/12/05 15:35:3
2 jsg Exp $ */
+/* $OpenBSD: uhidpp.c,v 1.2
1 2021/12/21 07:44:2
2 jsg Exp $ */
/*
* Copyright (c) 2021 Anton Lindqvist <anton@openbsd.org>
@@
-1207,7
+1207,7
@@
int
hidpp_send_report(struct uhidpp_softc *sc, uint8_t report_id,
struct uhidpp_report *req, struct uhidpp_report *resp)
{
- int error, len, n;
+ int error
= 0
, len, n;
MUTEX_ASSERT_LOCKED(&sc->sc_mtx);