diff options
author | Eric Moore <eric.moore@lsi.com> | 2007-09-29 12:16:28 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:52:11 -0400 |
commit | bc6e089a13a5c0ac36247616baecd6fc77405e7f (patch) | |
tree | 1550844191351e970b10c94379146f624e02f599 /drivers/message/fusion/mptsas.c | |
parent | e7eae9f6e94cd49261c2997b0b4f768c1351bc02 (diff) |
[SCSI] mpt fusion: Fix sparse warnings
List below is output from C=2 sparse compilation, which are fixed with
this patch.
1) mptspi: pg0 is defined in x86 version of include/asm/pgtable.h
2) mptsas: context imbalance in 'mptsas_probe' different lock contexts
for basic block
3) mptbase: from mpt_attach - cast adds address space to expression
4) mptbase: from mpt_do_upload - request[] is bad constant expression
Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptsas.c')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index adbdbd45e0c9..4c641c6f98a6 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -3224,6 +3224,7 @@ mptsas_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
3224 | hd->ScsiLookup = kcalloc(ioc->req_depth, sizeof(void *), GFP_ATOMIC); | 3224 | hd->ScsiLookup = kcalloc(ioc->req_depth, sizeof(void *), GFP_ATOMIC); |
3225 | if (!hd->ScsiLookup) { | 3225 | if (!hd->ScsiLookup) { |
3226 | error = -ENOMEM; | 3226 | error = -ENOMEM; |
3227 | spin_unlock_irqrestore(&ioc->FreeQlock, flags); | ||
3227 | goto out_mptsas_probe; | 3228 | goto out_mptsas_probe; |
3228 | } | 3229 | } |
3229 | 3230 | ||