artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f889065
)
Initialize error variable in dtread().
author
bluhm
<bluhm@openbsd.org>
Fri, 26 Mar 2021 21:17:10 +0000
(21:17 +0000)
committer
bluhm
<bluhm@openbsd.org>
Fri, 26 Mar 2021 21:17:10 +0000
(21:17 +0000)
OK mpi@
sys/dev/dt/dt_dev.c
patch
|
blob
|
history
diff --git
a/sys/dev/dt/dt_dev.c
b/sys/dev/dt/dt_dev.c
index
bf96200
..
a78775a
100644
(file)
--- a/
sys/dev/dt/dt_dev.c
+++ b/
sys/dev/dt/dt_dev.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dt_dev.c,v 1.1
1 2021/02/08 08:18:45 mpi
Exp $ */
+/* $OpenBSD: dt_dev.c,v 1.1
2 2021/03/26 21:17:10 bluhm
Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
@@
-213,7
+213,7
@@
dtread(dev_t dev, struct uio *uio, int flags)
struct dt_softc *sc;
struct dt_evt *estq;
struct dt_pcb *dp;
- int error, unit = minor(dev);
+ int error
= 0
, unit = minor(dev);
size_t qlen, count, read = 0;
uint64_t dropped = 0;