Commit ae177142 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Deepak Saxena

[PATCH] ACPI PCI Hotplug: kill magic number

The magic slot number was only another type of checking the validity of a
pointer. These checks are all gone so magic can follow them.
parent 574b8399
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) #define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg)
#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) #define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg)
#define SLOT_MAGIC 0x67267322
/* name size which is used for entries in pcihpfs */ /* name size which is used for entries in pcihpfs */
#define SLOT_NAME_SIZE KOBJ_NAME_LEN /* {_SUN} */ #define SLOT_NAME_SIZE KOBJ_NAME_LEN /* {_SUN} */
...@@ -59,7 +58,6 @@ struct pci_resource; ...@@ -59,7 +58,6 @@ struct pci_resource;
* struct slot - slot information for each *physical* slot * struct slot - slot information for each *physical* slot
*/ */
struct slot { struct slot {
u32 magic;
u8 number; u8 number;
struct hotplug_slot *hotplug_slot; struct hotplug_slot *hotplug_slot;
struct list_head slot_list; struct list_head slot_list;
......
...@@ -299,7 +299,6 @@ static int __init init_slots(void) ...@@ -299,7 +299,6 @@ static int __init init_slots(void)
if (!slot->hotplug_slot->name) if (!slot->hotplug_slot->name)
goto error_info; goto error_info;
slot->magic = SLOT_MAGIC;
slot->number = i; slot->number = i;
slot->hotplug_slot->private = slot; slot->hotplug_slot->private = slot;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment