[PATCH] PCI Hotplug: fix up coding style issues
[firefly-linux-kernel-4.4.55.git] / drivers / pci / hotplug / ibmphp_core.c
index aabf1e70b5280f70210c7f9efe840d3964ab1a31..dc59da675c0807e3913a1dbf420bf2d15817fbde 100644 (file)
@@ -235,12 +235,12 @@ static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value)
 {
        int rc = 0;
        struct slot *pslot;
-       u8 cmd;
+       u8 cmd = 0x00;     /* avoid compiler warning */
 
        debug("set_attention_status - Entry hotplug_slot[%lx] value[%x]\n",
                        (ulong) hotplug_slot, value);
        ibmphp_lock_operations();
-       cmd = 0x00;     // avoid compiler warning
+
 
        if (hotplug_slot) {
                switch (value) {