From 6e88732817a4677c90ecedef280d09de11a58253 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Fri, 24 Sep 2010 01:30:06 +0000 Subject: no use setting cmd in mfi_ioctl_setstate if you never use it. --- sys/dev/ic/mfi.c | 7 +------ 1 file changed, 1 insertion(+), 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 * @@ -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: -- cgit v1.2.3