]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
[SCSI] hpsa: remove unused parameter from finish_cmd
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Tue, 1 May 2012 16:42:46 +0000 (11:42 -0500)
committerJoe Jin <joe.jin@oracle.com>
Fri, 21 Dec 2012 03:14:42 +0000 (11:14 +0800)
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 5a3d16f51ef62bf17c9752c469db881dd12bce9b)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/hpsa.c

index 8f99a509141d5b8755624968bef1060be6548a9b..5cfd9ad147375dbf5c7c44481f4992539b1e2df4 100644 (file)
@@ -3082,7 +3082,7 @@ static inline int bad_tag(struct ctlr_info *h, u32 tag_index,
        return 0;
 }
 
-static inline void finish_cmd(struct CommandList *c, u32 raw_tag)
+static inline void finish_cmd(struct CommandList *c)
 {
        removeQ(c);
        if (likely(c->cmd_type == CMD_SCSI))
@@ -3122,7 +3122,7 @@ static inline u32 process_indexed_cmd(struct ctlr_info *h,
        if (bad_tag(h, tag_index, raw_tag))
                return next_command(h);
        c = h->cmd_pool + tag_index;
-       finish_cmd(c, raw_tag);
+       finish_cmd(c);
        return next_command(h);
 }
 
@@ -3136,7 +3136,7 @@ static inline u32 process_nonindexed_cmd(struct ctlr_info *h,
        tag = hpsa_tag_discard_error_bits(h, raw_tag);
        list_for_each_entry(c, &h->cmpQ, list) {
                if ((c->busaddr & 0xFFFFFFE0) == (tag & 0xFFFFFFE0)) {
-                       finish_cmd(c, raw_tag);
+                       finish_cmd(c);
                        return next_command(h);
                }
        }
@@ -4191,7 +4191,7 @@ static void fail_all_cmds_on_list(struct ctlr_info *h, struct list_head *list)
        while (!list_empty(list)) {
                c = list_entry(list->next, struct CommandList, list);
                c->err_info->CommandStatus = CMD_HARDWARE_ERR;
-               finish_cmd(c, c->Header.Tag.lower);
+               finish_cmd(c);
        }
 }