diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-06-19 17:12:35 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-06-19 17:12:35 +0000 |
commit | eb01acbe65d98e86911f5db97b3c893fff189139 (patch) | |
tree | a24d2b4442988535a012ff11576ccec083561df3 /usr.sbin/vmd/pci.c | |
parent | 0de1d34090fbcf42c12ba5c47ca29ceb31d4b16c (diff) |
knf
Diffstat (limited to 'usr.sbin/vmd/pci.c')
-rw-r--r-- | usr.sbin/vmd/pci.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.sbin/vmd/pci.c b/usr.sbin/vmd/pci.c index 12f0afcbc81..3372e9e2a37 100644 --- a/usr.sbin/vmd/pci.c +++ b/usr.sbin/vmd/pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.c,v 1.24 2018/04/27 12:15:10 mlarkin Exp $ */ +/* $OpenBSD: pci.c,v 1.25 2018/06/19 17:12:34 reyk Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -394,19 +394,20 @@ pci_handle_data_reg(struct vm_run_params *vrp) else { switch (sz) { case 4: - set_return_data(vei, pci.pci_devices[d].pd_cfg_space[o / 4]); + set_return_data(vei, + pci.pci_devices[d].pd_cfg_space[o / 4]); break; case 2: if (ofs == 0) - set_return_data(vei, - pci.pci_devices[d].pd_cfg_space[o / 4]); + set_return_data(vei, pci.pci_devices[d]. + pd_cfg_space[o / 4]); else - set_return_data(vei, - pci.pci_devices[d].pd_cfg_space[o / 4] >> 16); + set_return_data(vei, pci.pci_devices[d]. + pd_cfg_space[o / 4] >> 16); break; case 1: - set_return_data(vei, - pci.pci_devices[d].pd_cfg_space[o / 4] >> (ofs * 8)); + set_return_data(vei, pci.pci_devices[d]. + pd_cfg_space[o / 4] >> (ofs * 8)); break; } } |