diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2017-02-10 08:05:15 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2017-02-10 08:05:15 +0000 |
commit | f51130aeafa3f45c24c7cc69a99105da2869c922 (patch) | |
tree | 6871dda07bdcacaec1b924b368eb615b92039303 /sys | |
parent | 187218607c937063225c1c31283fce769442df60 (diff) |
Remove unused variable. From Michael W. Bombardieri <mb at ii.net>.
Thanks.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/envy.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/pci/envy.c b/sys/dev/pci/envy.c index 22fac13812f..2f7aaea9684 100644 --- a/sys/dev/pci/envy.c +++ b/sys/dev/pci/envy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envy.c,v 1.68 2016/09/19 06:46:44 ratchov Exp $ */ +/* $OpenBSD: envy.c,v 1.69 2017/02/10 08:05:14 ratchov Exp $ */ /* * Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org> * @@ -1032,11 +1032,8 @@ envy_mt_write_4(struct envy_softc *sc, int reg, int val) int envy_cci_read(struct envy_softc *sc, int index) { - int val; - envy_ccs_write(sc, ENVY_CCI_INDEX, index); - val = envy_ccs_read(sc, ENVY_CCI_DATA); - return val; + return (envy_ccs_read(sc, ENVY_CCI_DATA)); } void |