aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/cciss.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index eeed7aeb0b83..0a296c1eff4f 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -3433,14 +3433,12 @@ static inline u32 process_indexed_cmd(ctlr_info_t *h, u32 raw_tag)
3433/* process completion of a non-indexed command */ 3433/* process completion of a non-indexed command */
3434static inline u32 process_nonindexed_cmd(ctlr_info_t *h, u32 raw_tag) 3434static inline u32 process_nonindexed_cmd(ctlr_info_t *h, u32 raw_tag)
3435{ 3435{
3436 u32 tag;
3437 CommandList_struct *c = NULL; 3436 CommandList_struct *c = NULL;
3438 __u32 busaddr_masked, tag_masked; 3437 __u32 busaddr_masked, tag_masked;
3439 3438
3440 tag = cciss_tag_discard_error_bits(raw_tag); 3439 tag_masked = cciss_tag_discard_error_bits(raw_tag);
3441 list_for_each_entry(c, &h->cmpQ, list) { 3440 list_for_each_entry(c, &h->cmpQ, list) {
3442 busaddr_masked = cciss_tag_discard_error_bits(c->busaddr); 3441 busaddr_masked = cciss_tag_discard_error_bits(c->busaddr);
3443 tag_masked = cciss_tag_discard_error_bits(tag);
3444 if (busaddr_masked == tag_masked) { 3442 if (busaddr_masked == tag_masked) {
3445 finish_cmd(h, c, raw_tag); 3443 finish_cmd(h, c, raw_tag);
3446 return next_command(h); 3444 return next_command(h);