Skip to contentSkip to conversation

fix warning: unused variable ‘log_info’ drivers/message/fusion/mptsas.c

PATCH New helight.xu 1 participant 1 message Apr 4, 2011

Subsystems (2)
lore
Share & tools
lore

helight.xu

author
#0 lore raw

PATCH 1/1 fix warning: unused variable ‘log_info’ drivers/message/fusion/mptsas.c

fix warning: unused variable ‘log_info’ drivers/message/fusion/mptsas.c

---
 drivers/message/fusion/mptsas.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/message/fusion/mptsas.c +1 -1
index 8aefb18..431092b 100644
@@ -5009,13 +5009,13 @@ mptsas_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *reply)
 			(ioc_stat & MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE)) {
 			VirtTarget *vtarget = NULL;
 			u8		id, channel;
-			u32	 log_info = le32_to_cpu(reply->IOCLogInfo);
 
 			id = sas_event_data->TargetID;
 			channel = sas_event_data->Bus;
 
 			vtarget = mptsas_find_vtarget(ioc, channel, id);
 			if (vtarget) {
+				u32 log_info = le32_to_cpu(reply->IOCLogInfo);
 				devtprintk(ioc, printk(MYIOC_s_DEBUG_FMT
 				    "LogInfo (0x%x) available for "
 				   "INTERNAL_DEVICE_RESET"
Signature · 6 lines
1.6.0.2



------------------
Zhenwen Xu - Open and FreeHome Page:      http://zhwen.org