staging: wilc1000: return linux error value
authorGlen Lee <glen.lee@atmel.com>
Fri, 20 Nov 2015 07:56:32 +0000 (16:56 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Dec 2015 22:36:16 +0000 (14:36 -0800)
Return proper linux error value -ETIMEDOUT instead of -1.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/coreconfigurator.c

index 0cd2accf1a348ad5a572b3239f1b13387f6cbb83..329477ab5adc0e90dee9c72e02a0e8670c65b3c8 100644 (file)
@@ -601,7 +601,7 @@ s32 wilc_send_config_pkt(struct wilc *wilc, u8 mode, struct wid *wids,
                                               wids[counter].id,
                                               (counter == count - 1),
                                               drv)) {
-                               ret = -1;
+                               ret = -ETIMEDOUT;
                                printk("[Sendconfigpkt]Get Timed out\n");
                                break;
                        }
@@ -622,7 +622,7 @@ s32 wilc_send_config_pkt(struct wilc *wilc, u8 mode, struct wid *wids,
                                               wids[counter].size,
                                               (counter == count - 1),
                                               drv)) {
-                               ret = -1;
+                               ret = -ETIMEDOUT;
                                printk("[Sendconfigpkt]Set Timed out\n");
                                break;
                        }