Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci remove unused code



details:   https://anonhg.NetBSD.org/src/rev/fe79b31e0ab0
branches:  trunk
changeset: 791088:fe79b31e0ab0
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 04 16:54:12 2013 +0000

description:
remove unused code

diffstat:

 sys/dev/pci/tga.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 0278e24ecb67 -r fe79b31e0ab0 sys/dev/pci/tga.c
--- a/sys/dev/pci/tga.c Mon Nov 04 16:53:52 2013 +0000
+++ b/sys/dev/pci/tga.c Mon Nov 04 16:54:12 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tga.c,v 1.83 2012/01/11 20:50:00 macallan Exp $ */
+/* $NetBSD: tga.c,v 1.84 2013/11/04 16:54:12 christos Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.83 2012/01/11 20:50:00 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.84 2013/11/04 16:54:12 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1025,7 +1025,7 @@
        struct tga_devconfig *dc = dst->ri_hw;
        int srcb, dstb, tga_srcb, tga_dstb;
        int x, y, wb;
-       int xstart, xend, xdir;
+       int xstart, xdir;
        int ystart, yend, ydir, yinc;
        int xleft, lastx, lastleft;
        int offset = 1 * dc->dc_tgaconf->tgac_vvbr_units;
@@ -1063,11 +1063,9 @@
         wb = w * (dst->ri_depth / 8);
        if (sx >= dx || (sx + w) <= dx) {       /* copy forwards */
                xstart = 0;
-               xend = wb;
                xdir = 1;
        } else {                                /* copy backwards */
                xstart = wb;
-               xend = 0;
                xdir = -1;
        }
 



Home | Main Index | Thread Index | Old Index