Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Get rid of needless __predict_true() and move a c...



details:   https://anonhg.NetBSD.org/src/rev/40449c91f151
branches:  trunk
changeset: 932154:40449c91f151
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri May 01 07:27:51 2020 +0000

description:
Get rid of needless __predict_true() and move a comment slightly.

diffstat:

 sys/dev/ic/com.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 7720d573bdb2 -r 40449c91f151 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Fri May 01 07:03:02 2020 +0000
+++ b/sys/dev/ic/com.c  Fri May 01 07:27:51 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.357 2020/02/01 15:24:04 skrll Exp $ */
+/* $NetBSD: com.c,v 1.358 2020/05/01 07:27:51 simonb Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.357 2020/02/01 15:24:04 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.358 2020/05/01 07:27:51 simonb Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -2442,11 +2442,11 @@
        }
 
        rate = comspeed(rate, frequency, type);
-       if (__predict_true(rate != -1)) {
+       if (rate != -1) {
                if (type == COM_TYPE_AU1x00) {
+                       /* no EFR on alchemy */
                        CSR_WRITE_2(regsp, COM_REG_DLBL, rate);
                } else {
-                       /* no EFR on alchemy */
                        if ((type != COM_TYPE_16550_NOERS) && 
                            (type != COM_TYPE_INGENIC)) {
                                CSR_WRITE_1(regsp, COM_REG_LCR, LCR_EERS);



Home | Main Index | Thread Index | Old Index