summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorfcambus <fcambus@openbsd.org>2018-11-22 14:54:36 +0000
committerfcambus <fcambus@openbsd.org>2018-11-22 14:54:36 +0000
commit9d02d0e1dd44e01a4c13b664fb88b35d03361981 (patch)
tree6b72681cf50fab8178042461820f5c9fa83f92f7 /sys/dev
parentCorrect and shorten the description of the sort order of apropos(1) (diff)
downloadwireguard-openbsd-9d02d0e1dd44e01a4c13b664fb88b35d03361981.tar.xz
wireguard-openbsd-9d02d0e1dd44e01a4c13b664fb88b35d03361981.zip
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@
Diffstat (limited to 'sys/dev')
-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;