powerpc/eeh: Drop unnecessary label in eeh_pe_change_owner()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 27 Apr 2016 01:14:53 +0000 (11:14 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 12 May 2016 09:52:20 +0000 (19:52 +1000)
The label "reset" in eeh_pe_change_owner() is used only for once.
No need to keep it and just drop it. No logical changes introduced.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh.c

index c4e41cf..9d1d46c 100644 (file)
@@ -1336,14 +1336,11 @@ static int eeh_pe_change_owner(struct eeh_pe *pe)
                            id->subdevice != pdev->subsystem_device)
                                continue;
 
-                       goto reset;
+                       return eeh_pe_reset_and_recover(pe);
                }
        }
 
        return eeh_unfreeze_pe(pe, true);
-
-reset:
-       return eeh_pe_reset_and_recover(pe);
 }
 
 /**