aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.h
diff options
context:
space:
mode:
authorJoe Lawrence <joe.lawrence@stratus.com>2014-06-25 17:06:28 -0400
committerChristoph Hellwig <hch@lst.de>2014-07-25 17:16:58 -0400
commitc9834c70efbaaa1461ec04289d97a842244fb294 (patch)
treefc0f1e232f388236b602cd2bfd429db4700ef631 /drivers/message/fusion/mptbase.h
parent3e67c459d0ac945ac09639d85de299e65317aefe (diff)
mptfusion: make adapter prod_name[] a pointer
The struct _MPT_ADAPTER doesn't need a full copy of the product string, so prod_name can point to the string literal storage that the driver already provides. Avoids the following smatch warning: drivers/message/fusion/mptbase.c:2858 MptDisplayIocCapabilities() warn: this array is probably non-NULL. 'ioc->prod_name' Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com> Acked-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/message/fusion/mptbase.h')
-rw-r--r--drivers/message/fusion/mptbase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h
index f37ea6fdc6ae..8f14090b8b71 100644
--- a/drivers/message/fusion/mptbase.h
+++ b/drivers/message/fusion/mptbase.h
@@ -605,7 +605,7 @@ typedef struct _MPT_ADAPTER
605 int id; /* Unique adapter id N {0,1,2,...} */ 605 int id; /* Unique adapter id N {0,1,2,...} */
606 int pci_irq; /* This irq */ 606 int pci_irq; /* This irq */
607 char name[MPT_NAME_LENGTH]; /* "iocN" */ 607 char name[MPT_NAME_LENGTH]; /* "iocN" */
608 char prod_name[MPT_NAME_LENGTH]; /* "LSIFC9x9" */ 608 const char *prod_name; /* "LSIFC9x9" */
609#ifdef CONFIG_FUSION_LOGGING 609#ifdef CONFIG_FUSION_LOGGING
610 /* used in mpt_display_event_info */ 610 /* used in mpt_display_event_info */
611 char evStr[EVENT_DESCR_STR_SZ]; 611 char evStr[EVENT_DESCR_STR_SZ];