Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix the wrong expression in ixl(4)
details:   https://anonhg.NetBSD.org/src/rev/4a5df0ca5bbc
branches:  trunk
changeset: 968443:4a5df0ca5bbc
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Fri Jan 17 09:04:04 2020 +0000
description:
Fix the wrong expression in ixl(4)
Closes PR/54860.
diffstat:
 sys/dev/pci/if_ixl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r bf0c7e12e69c -r 4a5df0ca5bbc sys/dev/pci/if_ixl.c
--- a/sys/dev/pci/if_ixl.c      Fri Jan 17 05:22:42 2020 +0000
+++ b/sys/dev/pci/if_ixl.c      Fri Jan 17 09:04:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ixl.c,v 1.23 2020/01/16 07:19:47 yamaguchi Exp $    */
+/*     $NetBSD: if_ixl.c,v 1.24 2020/01/17 09:04:04 yamaguchi Exp $    */
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -6361,7 +6361,7 @@
                val = prop_number_integer_value((prop_number_t)obj);
 
                /* the range has no reason */
-               if (100 < val || val < 180000) {
+               if (100 < val && val < 180000) {
                        ixl_param_stats_interval = val;
                }
        }
Home |
Main Index |
Thread Index |
Old Index