Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/imx/fdt `best_diff' should be kept to a positiv...



details:   https://anonhg.NetBSD.org/src/rev/a39dae510165
branches:  trunk
changeset: 978564:a39dae510165
user:      ryo <ryo%NetBSD.org@localhost>
date:      Wed Nov 25 05:18:39 2020 +0000

description:
`best_diff' should be kept to a positive number

diffstat:

 sys/arch/arm/imx/fdt/imx_ccm_div.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b34c21134497 -r a39dae510165 sys/arch/arm/imx/fdt/imx_ccm_div.c
--- a/sys/arch/arm/imx/fdt/imx_ccm_div.c        Wed Nov 25 00:50:44 2020 +0000
+++ b/sys/arch/arm/imx/fdt/imx_ccm_div.c        Wed Nov 25 05:18:39 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imx_ccm_div.c,v 1.1 2020/06/10 17:57:50 jmcneill Exp $ */
+/* $NetBSD: imx_ccm_div.c,v 1.2 2020/11/25 05:18:39 ryo Exp $ */
 
 /*-
  * Copyright (c) 2020 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imx_ccm_div.c,v 1.1 2020/06/10 17:57:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx_ccm_div.c,v 1.2 2020/11/25 05:18:39 ryo Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -97,7 +97,7 @@
                } else {
                        if (abs(diff) < abs(best_diff)) {
                                best_n = n;
-                               best_diff = diff;
+                               best_diff = abs(diff);
                        }
                }
        }



Home | Main Index | Thread Index | Old Index