diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2006-09-01 09:28:48 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-02 14:57:28 -0400 |
commit | deb81d80ba27da8dfabc29ccb5977db8f4942a0a (patch) | |
tree | b4776d0eb64c1e849a40870192e9c90abd773f66 /include/scsi/scsi_tcq.h | |
parent | cf355883f506051a8ce3ac4539752829320b6c8c (diff) |
[SCSI] add failure return to scsi_init_shared_tag_map()
And use it in the stex driver.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_tcq.h')
-rw-r--r-- | include/scsi/scsi_tcq.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/scsi_tcq.h b/include/scsi/scsi_tcq.h index 4eea254b1ce9..d04d05adfa9b 100644 --- a/include/scsi/scsi_tcq.h +++ b/include/scsi/scsi_tcq.h | |||
@@ -138,9 +138,10 @@ static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag) | |||
138 | * @shost: the host to share the tag map among all devices | 138 | * @shost: the host to share the tag map among all devices |
139 | * @depth: the total depth of the map | 139 | * @depth: the total depth of the map |
140 | */ | 140 | */ |
141 | static inline void scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth) | 141 | static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth) |
142 | { | 142 | { |
143 | shost->bqt = blk_init_tags(depth); | 143 | shost->bqt = blk_init_tags(depth); |
144 | return shost->bqt ? 0 : -ENOMEM; | ||
144 | } | 145 | } |
145 | 146 | ||
146 | #endif /* _SCSI_SCSI_TCQ_H */ | 147 | #endif /* _SCSI_SCSI_TCQ_H */ |