From f6f460e69a078e9b23479296f384ee2c59cfbade Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Tue, 19 Apr 2011 21:53:37 +0000 Subject: Fix dead store. Instead of just remove it, use it properly. Found by LLVM/Clang Static Analyzer. ok miod@ krw@ --- sys/dev/cons.c | 4 ++-- 1 file 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)); } -- cgit v1.2.3