diff options
author | 2009-06-11 07:47:41 +0000 | |
---|---|---|
committer | 2009-06-11 07:47:41 +0000 | |
commit | 97f9177f71ee58e8e29a436e50ebecd524a70e47 (patch) | |
tree | b5d92717609da04da1a12a6375250c5221ce0c8d | |
parent | Do not show MBRs without the correct signature, instead say they are (diff) | |
download | wireguard-openbsd-97f9177f71ee58e8e29a436e50ebecd524a70e47.tar.xz wireguard-openbsd-97f9177f71ee58e8e29a436e50ebecd524a70e47.zip |
remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer.
ok marco@
-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); |