Skip to contentSkip to conversation

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

PATCH In review helight.xu 1 participant 2 messages Apr 6, 2011

Subsystems (5)
DRM drivers SCSI DRM misc nouveau +1 more subsystems
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/gpu/drm/nouveau/nv50_vm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nv50_vm.c +0 -1
index 6144156..1f47c75 100644
@@ -31,7 +31,6 @@ void
 nv50_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 pde,
         struct nouveau_gpuobj *pgt[2])
 {
-    struct drm_nouveau_private *dev_priv = pgd->dev->dev_private;
     u64 phys = 0xdeadcafe00000000ULL;
     u32 coverage = 0;
 
Signature · 1 line
1.6.0.2
Quoted 1 line

From 655f95b584289fcf6da3aa4c8ad17ccdbc0b96f3 Mon Sep 17 00:00:00 2001

From: helight <[email protected]>
Date: Mon, 4 Apr 2011 20:18:23 +0800
Subject: [PATCH] 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 · 1 line
1.6.0.2
author
#1 lore raw
Quoted 13 lines · helight.xu

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

---
 drivers/gpu/drm/nouveau/nv50_vm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nv50_vm.c +0 -0
index 6144156..1f47c75 100644

drivers/gpu/drm/nouveau/nv50_vm.c void · line 36

Quoted 7 lines
drivers/gpu/drm/nouveau/nv50_vm.c +0 -1
@@ -31,7 +31,6 @@ void
 nv50_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 pde,
         struct nouveau_gpuobj *pgt[2])
 {
-    struct drm_nouveau_private *dev_priv = pgd->dev->dev_private;
     u64 phys = 0xdeadcafe00000000ULL;
     u32 coverage = 0;
 

sorry ,this is the patch

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 · 1 line
1.6.0.2