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:
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue