diff options
author | Glen Lee | 2015-11-20 08:56:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-12-18 23:36:16 +0100 |
commit | c2ba8b2bc232721e8bddd86bfe22503b0bf5f2e5 (patch) | |
tree | d63e666341434aaad2d029d975775f8042f23fc7 /drivers/staging/wilc1000/coreconfigurator.c | |
parent | staging: wilc1000: remove unused variable (diff) | |
download | kernel-qcow2-linux-c2ba8b2bc232721e8bddd86bfe22503b0bf5f2e5.tar.gz kernel-qcow2-linux-c2ba8b2bc232721e8bddd86bfe22503b0bf5f2e5.tar.xz kernel-qcow2-linux-c2ba8b2bc232721e8bddd86bfe22503b0bf5f2e5.zip |
staging: wilc1000: return linux error value
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>
Diffstat (limited to 'drivers/staging/wilc1000/coreconfigurator.c')
-rw-r--r-- | drivers/staging/wilc1000/coreconfigurator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index 0cd2accf1a34..329477ab5adc 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -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; } |