Source-Changes-HG archive

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

[src/pgoyette-localcount]: src/sys/dev Remove duplicated code (cut-and-paste ...



details:   https://anonhg.NetBSD.org/src/rev/12f859640f59
branches:  pgoyette-localcount
changeset: 852878:12f859640f59
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Jul 28 06:45:32 2016 +0000

description:
Remove duplicated code (cut-and-paste error)

diffstat:

 sys/dev/cgd.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r f150a39a82c1 -r 12f859640f59 sys/dev/cgd.c
--- a/sys/dev/cgd.c     Thu Jul 28 01:44:55 2016 +0000
+++ b/sys/dev/cgd.c     Thu Jul 28 06:45:32 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.108.2.16 2016/07/26 05:54:39 pgoyette Exp $ */
+/* $NetBSD: cgd.c,v 1.108.2.17 2016/07/28 06:45:32 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.108.2.16 2016/07/26 05:54:39 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.108.2.17 2016/07/28 06:45:32 pgoyette Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1157,12 +1157,6 @@
                    &cgd_cdevsw, &cgd_cmajor);
 
                /*
-                * Attach the {b,c}devsw's
-                */
-               error = devsw_attach("cgd", &cgd_bdevsw, &cgd_bmajor,
-                   &cgd_cdevsw, &cgd_cmajor);
-
-               /*
                 * If devsw_attach fails, remove from autoconf database
                 */
                if (error) {



Home | Main Index | Thread Index | Old Index