Date: Sun, 17 Aug 2008 14:05:49 GMT From: Ed Schouten <ed@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 147648 for review Message-ID: <200808171405.m7HE5nnR027390@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147648 Change 147648 by ed@ed_dull on 2008/08/17 14:04:51 Remove unused softc. Affected files ... .. //depot/projects/mpsafetty/sys/dev/xen/console/console.c#4 edit Differences ... ==== //depot/projects/mpsafetty/sys/dev/xen/console/console.c#4 (text+ko) ==== @@ -93,11 +93,6 @@ static struct tty *xccons; -struct xc_softc { - int xc_unit; -}; - - static tsw_open_t xcopen; static tsw_close_t xcclose; @@ -215,23 +210,18 @@ static int xc_probe(device_t dev) { - struct xc_softc *sc = (struct xc_softc *)device_get_softc(dev); - - sc->xc_unit = device_get_unit(dev); return (0); } static int xc_attach(device_t dev) { - struct xc_softc *sc = (struct xc_softc *)device_get_softc(dev); - if (xen_start_info->flags & SIF_INITDOMAIN) { xc_consdev.cn_putc = xccnputc_dom0; } - xccons = tty_alloc(&xc_ttydevsw, sc, NULL); + xccons = tty_alloc(&xc_ttydevsw, NULL, NULL); tty_makedev(xccons, NULL, "xc%r", 0); callout_init(&xc_callout, 0); @@ -405,7 +395,7 @@ static driver_t xc_driver = { driver_name, xc_methods, - sizeof(struct xc_softc), + 0, }; /*** Forcibly flush console data before dying. ***/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808171405.m7HE5nnR027390>