aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/synclink_gt.c
diff options
context:
space:
mode:
authorPaul Fulghum <paulkf@microgate.com>2006-06-25 08:49:21 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 13:01:24 -0400
commit294dad05311416718c2a172738e1ca4071449877 (patch)
treebfcccfb6e3cdc0b83005e6bb9c20447b56220248 /drivers/char/synclink_gt.c
parent04b374d0f5a97761b91a0c3ff6d10f80abd206b0 (diff)
[PATCH] fix synclink_gt diagnostics error reporting
Fix diagnostics error reporting that was being overwritten by incorrect use of return codes from individual diagnostic functions. Signed-off-by: Paul Fulghum <paulkf@microgate.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/synclink_gt.c')
-rw-r--r--drivers/char/synclink_gt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c
index 03a7f20db49a..41eab9831ad5 100644
--- a/drivers/char/synclink_gt.c
+++ b/drivers/char/synclink_gt.c
@@ -4702,13 +4702,13 @@ static int loopback_test(struct slgt_info *info)
4702static int adapter_test(struct slgt_info *info) 4702static int adapter_test(struct slgt_info *info)
4703{ 4703{
4704 DBGINFO(("testing %s\n", info->device_name)); 4704 DBGINFO(("testing %s\n", info->device_name));
4705 if ((info->init_error = register_test(info)) < 0) { 4705 if (register_test(info) < 0) {
4706 printk("register test failure %s addr=%08X\n", 4706 printk("register test failure %s addr=%08X\n",
4707 info->device_name, info->phys_reg_addr); 4707 info->device_name, info->phys_reg_addr);
4708 } else if ((info->init_error = irq_test(info)) < 0) { 4708 } else if (irq_test(info) < 0) {
4709 printk("IRQ test failure %s IRQ=%d\n", 4709 printk("IRQ test failure %s IRQ=%d\n",
4710 info->device_name, info->irq_level); 4710 info->device_name, info->irq_level);
4711 } else if ((info->init_error = loopback_test(info)) < 0) { 4711 } else if (loopback_test(info) < 0) {
4712 printk("loopback test failure %s\n", info->device_name); 4712 printk("loopback test failure %s\n", info->device_name);
4713 } 4713 }
4714 return info->init_error; 4714 return info->init_error;