aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r--drivers/message/fusion/mptbase.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index 266414ca2814..ac66a658aa11 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -5741,6 +5741,7 @@ static void
5741EventDescriptionStr(u8 event, u32 evData0, char *evStr) 5741EventDescriptionStr(u8 event, u32 evData0, char *evStr)
5742{ 5742{
5743 char *ds; 5743 char *ds;
5744 char buf[50];
5744 5745
5745 switch(event) { 5746 switch(event) {
5746 case MPI_EVENT_NONE: 5747 case MPI_EVENT_NONE:
@@ -5841,7 +5842,6 @@ EventDescriptionStr(u8 event, u32 evData0, char *evStr)
5841 break; 5842 break;
5842 case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE: 5843 case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE:
5843 { 5844 {
5844 char buf[50];
5845 u8 id = (u8)(evData0); 5845 u8 id = (u8)(evData0);
5846 u8 ReasonCode = (u8)(evData0 >> 16); 5846 u8 ReasonCode = (u8)(evData0 >> 16);
5847 switch (ReasonCode) { 5847 switch (ReasonCode) {
@@ -5878,7 +5878,6 @@ EventDescriptionStr(u8 event, u32 evData0, char *evStr)
5878 break; 5878 break;
5879 case MPI_EVENT_SAS_PHY_LINK_STATUS: 5879 case MPI_EVENT_SAS_PHY_LINK_STATUS:
5880 { 5880 {
5881 char buf[50];
5882 u8 LinkRates = (u8)(evData0 >> 8); 5881 u8 LinkRates = (u8)(evData0 >> 8);
5883 u8 PhyNumber = (u8)(evData0); 5882 u8 PhyNumber = (u8)(evData0);
5884 LinkRates = (LinkRates & MPI_EVENT_SAS_PLS_LR_CURRENT_MASK) >> 5883 LinkRates = (LinkRates & MPI_EVENT_SAS_PLS_LR_CURRENT_MASK) >>
@@ -5921,7 +5920,6 @@ EventDescriptionStr(u8 event, u32 evData0, char *evStr)
5921 case MPI_EVENT_IR_RESYNC_UPDATE: 5920 case MPI_EVENT_IR_RESYNC_UPDATE:
5922 { 5921 {
5923 u8 resync_complete = (u8)(evData0 >> 16); 5922 u8 resync_complete = (u8)(evData0 >> 16);
5924 char buf[40];
5925 sprintf(buf,"IR Resync Update: Complete = %d:",resync_complete); 5923 sprintf(buf,"IR Resync Update: Complete = %d:",resync_complete);
5926 ds = buf; 5924 ds = buf;
5927 break; 5925 break;