summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2018-11-22 14:54:37 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2018-11-22 14:54:37 +0000
commit0ed6516d99d872f49ce2745a6dcf1144aaf45994 (patch)
tree1a7d572326b6f6ea05493e6259df21f319fca142
parent36b7c9163cb898df5af11b77c43f0356d17a2e07 (diff)
Remove useless assignment, value is overwritten right after being set.
Both assignements are in our tree since the driver got imported from FreeBSD in 2001 and remained untouched since import. The second assignment in its current form got introduced in FreeBSD in 1997 with r29233 [1], when syncinc the driver. The first assignment got removed in 2017 with r314147 [2]. [1]: https://svnweb.freebsd.org/base?view=revision&revision=29233 [2]: https://svnweb.freebsd.org/base?view=revision&revision=314147 Coverity CID 1453008. OK deraadt@
-rw-r--r--sys/dev/pci/bktr/bktr_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c
index 130f83448b9..7e2c10a13dd 100644
--- a/sys/dev/pci/bktr/bktr_core.c
+++ b/sys/dev/pci/bktr/bktr_core.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bktr_core.c,v 1.39 2018/04/28 15:44:59 jasper Exp $ */
+/* $OpenBSD: bktr_core.c,v 1.40 2018/11/22 14:54:36 fcambus Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */
/*
@@ -2864,7 +2864,6 @@ yuvpack_prog( bktr_ptr_t bktr, char i_flag,
OUTB(bktr, BKTR_COLOR_CTL, INB(bktr, BKTR_COLOR_CTL) | BT848_COLOR_CTL_RGB_DED | BT848_COLOR_CTL_GAMMA);
OUTB(bktr, BKTR_ADC, SYNC_LEVEL);
- bktr->capcontrol = 1 << 6 | 1 << 4 | 1 << 2 | 3;
bktr->capcontrol = 3 << 2 | 3;
dma_prog = (u_int *) bktr->dma_prog;