diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2011-04-19 21:53:37 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2011-04-19 21:53:37 +0000 |
commit | f6f460e69a078e9b23479296f384ee2c59cfbade (patch) | |
tree | 73ab3c079e431ab793eae76be9ad73725d78b440 | |
parent | 39c40e4ae0239cae7dc3f63f68c6bcf3bfe7e789 (diff) |
Fix dead store. Instead of just remove it, use it properly.
Found by LLVM/Clang Static Analyzer.
ok miod@ krw@
-rw-r--r-- | sys/dev/cons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cons.c b/sys/dev/cons.c index b64fe2d72d5..717165b210e 100644 --- a/sys/dev/cons.c +++ b/sys/dev/cons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cons.c,v 1.20 2010/06/26 23:24:44 guenther Exp $ */ +/* $OpenBSD: cons.c,v 1.21 2011/04/19 21:53:36 chl Exp $ */ /* $NetBSD: cons.c,v 1.30 1996/04/08 19:57:30 jonathan Exp $ */ /* @@ -199,7 +199,7 @@ cnpoll(dev_t dev, int rw, struct proc *p) return POLLERR; else dev = cn_tab->cn_dev; - return (ttpoll(cn_tab->cn_dev, rw, p)); + return (ttpoll(dev, rw, p)); } |