Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Remove inappropriate place for __predict_false.



details:   https://anonhg.NetBSD.org/src/rev/b982c59a85c3
branches:  trunk
changeset: 971559:b982c59a85c3
user:      nat <nat%NetBSD.org@localhost>
date:      Mon Apr 27 23:35:40 2020 +0000

description:
Remove inappropriate place for __predict_false.

Ok mrg@ maya@.

diffstat:

 sys/net/pfil.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4fa9546de0cb -r b982c59a85c3 sys/net/pfil.c
--- a/sys/net/pfil.c    Mon Apr 27 23:06:34 2020 +0000
+++ b/sys/net/pfil.c    Mon Apr 27 23:35:40 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pfil.c,v 1.37 2020/04/27 23:05:31 nat Exp $    */
+/*     $NetBSD: pfil.c,v 1.38 2020/04/27 23:35:40 nat Exp $    */
 
 /*
  * Copyright (c) 2013 Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pfil.c,v 1.37 2020/04/27 23:05:31 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pfil.c,v 1.38 2020/04/27 23:35:40 nat Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_net_mpsafe.h"
@@ -399,7 +399,7 @@
 
        KASSERT(dir == PFIL_IN || dir == PFIL_OUT);
 
-       if (__predict_false(ph == NULL)) {
+       if (ph == NULL) {
                return ret;
        }
 



Home | Main Index | Thread Index | Old Index