Commit 7371335
tun: remove useless codes in tun_chr_aio_read() and tun_recvmsg()
By checking related codes, it is impossible that ret > len or total_len,
so we should remove some useless codes in both above functions.
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 41e4af6 commit 7371335
1 file changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | | - | |
1358 | 1357 | | |
1359 | 1358 | | |
1360 | 1359 | | |
| |||
1455 | 1454 | | |
1456 | 1455 | | |
1457 | 1456 | | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | 1457 | | |
1463 | 1458 | | |
1464 | 1459 | | |
| |||
0 commit comments