aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2006-01-25 20:03:40 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-23 17:35:12 -0500
commit8abebe13f9df5b93be521eeefbf349236ddcd4eb (patch)
treeebfef0af3f05f60525e49ae2d234087e47b35b1c /drivers/pci
parent57c95c0d1c9ec83877dfea2f62bebf31059bc93c (diff)
[PATCH] shpchp - removed unncessary 'magic' member from slot
This patch removes unnecessary 'magic' member from struct slot of SHPCHP driver. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/shpchp.h6
-rw-r--r--drivers/pci/hotplug/shpchp_core.c1
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h
index b1e2a7705835..1e6d354fff38 100644
--- a/drivers/pci/hotplug/shpchp.h
+++ b/drivers/pci/hotplug/shpchp.h
@@ -53,9 +53,7 @@ extern int shpchp_debug;
53#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) 53#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg)
54#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) 54#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg)
55 55
56#define SLOT_MAGIC 0x67267321
57struct slot { 56struct slot {
58 u32 magic;
59 u8 bus; 57 u8 bus;
60 u8 device; 58 u8 device;
61 u16 status; 59 u16 status;
@@ -287,10 +285,6 @@ static inline int slot_paranoia_check (struct slot *slot, const char *function)
287 dbg("%s - slot == NULL", function); 285 dbg("%s - slot == NULL", function);
288 return -1; 286 return -1;
289 } 287 }
290 if (slot->magic != SLOT_MAGIC) {
291 dbg("%s - bad magic number for slot", function);
292 return -1;
293 }
294 if (!slot->hotplug_slot) { 288 if (!slot->hotplug_slot) {
295 dbg("%s - slot->hotplug_slot == NULL!", function); 289 dbg("%s - slot->hotplug_slot == NULL!", function);
296 return -1; 290 return -1;
diff --git a/drivers/pci/hotplug/shpchp_core.c b/drivers/pci/hotplug/shpchp_core.c
index 08be8c1f5dcc..4161da4bf4ba 100644
--- a/drivers/pci/hotplug/shpchp_core.c
+++ b/drivers/pci/hotplug/shpchp_core.c
@@ -137,7 +137,6 @@ static int init_slots(struct controller *ctrl)
137 hotplug_slot->name = name; 137 hotplug_slot->name = name;
138 138
139 slot->hp_slot = i; 139 slot->hp_slot = i;
140 slot->magic = SLOT_MAGIC;
141 slot->ctrl = ctrl; 140 slot->ctrl = ctrl;
142 slot->bus = ctrl->slot_bus; 141 slot->bus = ctrl->slot_bus;
143 slot->device = ctrl->slot_device_offset + i; 142 slot->device = ctrl->slot_device_offset + i;