diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-03-29 23:33:40 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-03-29 23:33:40 +0000 |
commit | a65580ffe4015aa3ff33845af072cc6d8449328c (patch) | |
tree | 440f567bdbe079c50caba2104223eaf9e8911e3b /sys/dev/ic/twe.c | |
parent | 0181b3616d9227302ce4911ebb960a51c11b31ae (diff) |
Initialize various uninitialized variables. Found by jsg@ via Clang.
Feedback from miod@ and kettenis@.
ok beck@
Diffstat (limited to 'sys/dev/ic/twe.c')
-rw-r--r-- | sys/dev/ic/twe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c index dd0d0c6d21d..e65f60fd715 100644 --- a/sys/dev/ic/twe.c +++ b/sys/dev/ic/twe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: twe.c,v 1.34 2010/03/23 01:57:20 krw Exp $ */ +/* $OpenBSD: twe.c,v 1.35 2010/03/29 23:33:39 krw Exp $ */ /* * Copyright (c) 2000-2002 Michael Shalayeff. All rights reserved. @@ -864,7 +864,9 @@ twe_scsi_cmd(xs) lock = TWE_LOCK(sc); flags = 0; - if (xs->cmd->opcode != SYNCHRONIZE_CACHE) { + if (xs->cmd->opcode == SYNCHRONIZE_CACHE) { + blockno = blockcnt = 0; + } else { /* A read or write operation. */ if (xs->cmdlen == 6) { rw = (struct scsi_rw *)xs->cmd; |