Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2ba8b2b authored by Glen Lee's avatar Glen Lee Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: return linux error value



Return proper linux error value -ETIMEDOUT instead of -1.

Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 604f6e2d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
			}