mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 01:53:20 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
604f6e2dae
commit
c2ba8b2bc2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user