Commit 9b89ca2
pibridge-serdev: change semantic of pibridge_recv_timeout()
In function pibridge_recv_timeout() do not return 0 if the number of
received bytes is smaller than the size of the provided receive buffer.
Instead return the number of received bytes.
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>1 parent 5849e2d commit 9b89ca2
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
| |||
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
| 195 | + | |
197 | 196 | | |
198 | | - | |
199 | | - | |
200 | 197 | | |
201 | | - | |
| 198 | + | |
202 | 199 | | |
203 | 200 | | |
204 | 201 | | |
| |||
0 commit comments