aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/eeh.c
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2016-09-19 17:39:02 +0800
committerAlex Shi <alex.shi@linaro.org>2016-09-19 17:39:02 +0800
commit7acaa1968831591b5cf97b6cb00b0acca2dc5ee1 (patch)
tree9dba673061452165322aa9d9c8493ce90e33a651 /arch/powerpc/kernel/eeh.c
parentb71d24fd9283d80a2ca7b26cdd5de296b17de72c (diff)
parent7ddc655ad909372848a3e7995e222c2b9224c2e0 (diff)
Merge branch 'linux-linaro-lsk-v4.1' into linux-linaro-lsk-v4.1-rtlsk-v4.1-16.09-rt
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r--arch/powerpc/kernel/eeh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index 9a4e71261fca..b264937bba68 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -678,7 +678,7 @@ int eeh_pci_enable(struct eeh_pe *pe, int function)
/* Check if the request is finished successfully */
if (active_flag) {
rc = eeh_ops->wait_state(pe, PCI_BUS_RESET_WAIT_MSEC);
- if (rc <= 0)
+ if (rc < 0)
return rc;
if (rc & active_flag)