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/5a8596b5f8b7
branches:  trunk
changeset: 931631:5a8596b5f8b7
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 a4e96d7a2bf9 -r 5a8596b5f8b7 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