diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2009-06-11 07:47:42 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2009-06-11 07:47:42 +0000 |
commit | ab4e4f2b30d9d9ad0e11755851a2c8c9ba56df02 (patch) | |
tree | 2701737c758596e51da195f7d3922d979d329242 /sys | |
parent | a61ea7305e003810ae54bf1066bc073a054c02a7 (diff) |
remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer.
ok marco@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ami.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index e654ea75e78..f223ded6145 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.193 2009/06/04 06:34:38 ray Exp $ */ +/* $OpenBSD: ami.c,v 1.194 2009/06/11 07:47:41 chl Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -2473,7 +2473,7 @@ int ami_ioctl_setstate(struct ami_softc *sc, struct bioc_setstate *bs) { struct scsi_inquiry_data inqbuf; - int func, off, error; + int func, error; switch (bs->bs_status) { case BIOC_SSONLINE: @@ -2485,8 +2485,6 @@ ami_ioctl_setstate(struct ami_softc *sc, struct bioc_setstate *bs) break; case BIOC_SSHOTSPARE: - off = bs->bs_channel * AMI_MAX_TARGET + bs->bs_target; - if (ami_drv_inq(sc, bs->bs_channel, bs->bs_target, 0, &inqbuf)) return (EINVAL); |