Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic com(4): Nix dead code.



details:   https://anonhg.NetBSD.org/src/rev/2e254671b8dc
branches:  trunk
changeset: 371722:2e254671b8dc
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Oct 03 19:58:48 2022 +0000

description:
com(4): Nix dead code.

This was introduced in rev. 1.292, whose commit message was...
`Delete dead code.'  I guess December 6, 2009 was Opposite Day?

diffstat:

 sys/dev/ic/com.c |  22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diffs (50 lines):

diff -r 8c8f2ad823df -r 2e254671b8dc sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Mon Oct 03 19:57:41 2022 +0000
+++ b/sys/dev/ic/com.c  Mon Oct 03 19:58:48 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.375 2022/10/03 19:57:41 riastradh Exp $ */
+/* $NetBSD: com.c,v 1.376 2022/10/03 19:58:48 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.375 2022/10/03 19:57:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.376 2022/10/03 19:58:48 riastradh Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -899,19 +899,6 @@
                com_enable_debugport(sc);
 }
 
-#if 0
-static int
-comcngetc_detached(dev_t dev)
-{
-       return 0;
-}
-
-static void
-comcnputc_detached(dev_t dev, int c)
-{
-}
-#endif
-
 int
 com_detach(device_t self, int flags)
 {
@@ -2838,11 +2825,6 @@
 {
        struct com_softc *sc = device_private(self);
 
-#if 0
-       if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE) && cn_tab == &comcons)
-               cn_tab = &comcons_suspend;
-#endif
-
        CSR_WRITE_1(&sc->sc_regs, COM_REG_IER, 0);
        (void)CSR_READ_1(&sc->sc_regs, COM_REG_IIR);
 



Home | Main Index | Thread Index | Old Index