diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-09-24 01:30:06 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-09-24 01:30:06 +0000 |
commit | 6e88732817a4677c90ecedef280d09de11a58253 (patch) | |
tree | 4677e3c614841286cc0e5d0b050bdeea34e2c046 /sys | |
parent | 2aea0aba01deb416a0a16c185ab21110bf21ed83 (diff) |
no use setting cmd in mfi_ioctl_setstate if you never use it.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/mfi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 21c9beb1ff7..d588363b0e9 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.112 2010/09/20 06:17:49 krw Exp $ */ +/* $OpenBSD: mfi.c,v 1.113 2010/09/24 01:30:05 dlg Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -1741,7 +1741,6 @@ mfi_ioctl_setstate(struct mfi_softc *sc, struct bioc_setstate *bs) struct mfi_pd_list *pd; int i, found, rv = EINVAL; uint8_t mbox[MFI_MBOX_SIZE]; - uint32_t cmd; DNPRINTF(MFI_D_IOCTL, "%s: mfi_ioctl_setstate %x\n", DEVNAME(sc), bs->bs_status); @@ -1769,21 +1768,17 @@ mfi_ioctl_setstate(struct mfi_softc *sc, struct bioc_setstate *bs) switch (bs->bs_status) { case BIOC_SSONLINE: mbox[2] = MFI_PD_ONLINE; - cmd = MD_DCMD_PD_SET_STATE; break; case BIOC_SSOFFLINE: mbox[2] = MFI_PD_OFFLINE; - cmd = MD_DCMD_PD_SET_STATE; break; case BIOC_SSHOTSPARE: mbox[2] = MFI_PD_HOTSPARE; - cmd = MD_DCMD_PD_SET_STATE; break; /* case BIOC_SSREBUILD: - cmd = MD_DCMD_PD_REBUILD; break; */ default: |