Remove some more dead initialization.
authorSascha Wildner <saw@online.de>
Wed, 24 Dec 2008 11:17:21 +0000 (12:17 +0100)
committerSascha Wildner <saw@online.de>
Wed, 24 Dec 2008 11:17:37 +0000 (12:17 +0100)
Found-by: LLVM/Clang Static Analyzer
sys/kern/kern_sig.c
sys/net/pf/pf.c

index b138024..732890f 100644 (file)
@@ -703,7 +703,7 @@ kern_kill(int sig, pid_t pid, lwpid_t tid)
        if ((u_int)sig > _SIG_MAXSIG)
                return (EINVAL);
        if (pid > 0) {
-               struct proc *p = curthread->td_proc;
+               struct proc *p;
                struct lwp *lp = NULL;
 
                /* kill single process */
index 43abc12..1e1c346 100644 (file)
@@ -2812,7 +2812,7 @@ cleanup:
                        *sm = s;
                if ((th->th_flags & (TH_SYN|TH_ACK)) == TH_SYN &&
                    r->keep_state == PF_STATE_SYNPROXY) {
-                       u_int16_t mss = tcp_mssdflt;
+                       u_int16_t mss;
 
                        s->src.state = PF_TCPS_PROXY_SRC;
                        if (nr != NULL) {