diff options
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/ldc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/ldc.c b/arch/sparc/kernel/ldc.c index e01d75d40329..66dacd56bb10 100644 --- a/arch/sparc/kernel/ldc.c +++ b/arch/sparc/kernel/ldc.c | |||
@@ -1336,7 +1336,7 @@ int ldc_connect(struct ldc_channel *lp) | |||
1336 | if (!(lp->flags & LDC_FLAG_ALLOCED_QUEUES) || | 1336 | if (!(lp->flags & LDC_FLAG_ALLOCED_QUEUES) || |
1337 | !(lp->flags & LDC_FLAG_REGISTERED_QUEUES) || | 1337 | !(lp->flags & LDC_FLAG_REGISTERED_QUEUES) || |
1338 | lp->hs_state != LDC_HS_OPEN) | 1338 | lp->hs_state != LDC_HS_OPEN) |
1339 | err = -EINVAL; | 1339 | err = ((lp->hs_state > LDC_HS_OPEN) ? 0 : -EINVAL); |
1340 | else | 1340 | else |
1341 | err = start_handshake(lp); | 1341 | err = start_handshake(lp); |
1342 | 1342 | ||