From 8683f63230f25a6f80b1957c29bf9fae8779f9b0 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 13 Aug 2008 10:29:38 +0000 Subject: [PATCH] Move declaration and assignment of minr into #if 0. Found-by: LLVM/Clang Static Analyzer --- sys/kern/tty_pty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 364953dd1a..53e4ddf056 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -32,7 +32,7 @@ * * @(#)tty_pty.c 8.4 (Berkeley) 2/20/95 * $FreeBSD: src/sys/kern/tty_pty.c,v 1.74.2.4 2002/02/20 19:58:13 dillon Exp $ - * $DragonFly: src/sys/kern/tty_pty.c,v 1.20 2008/01/05 14:02:38 swildner Exp $ + * $DragonFly: src/sys/kern/tty_pty.c,v 1.21 2008/08/13 10:29:38 swildner Exp $ */ /* @@ -158,14 +158,14 @@ ptsopen(struct dev_open_args *ap) cdev_t dev = ap->a_head.a_dev; struct tty *tp; int error; - int minr; #if 0 + int minr; cdev_t nextdev; #endif struct pt_ioctl *pti; - minr = lminor(dev); #if 0 + minr = lminor(dev); /* * REMOVED gross hack for devfs. also note that makedev() * no longer exists in this form and reference counting makes -- 2.11.4.GIT