]> git.karo-electronics.de Git - linux-beck.git/commit
tun: remove useless codes in tun_chr_aio_read() and tun_recvmsg()
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Fri, 6 Dec 2013 20:55:00 +0000 (04:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2013 01:36:08 +0000 (20:36 -0500)
commit73713357ab58aacda1af715bb5a623528dbbfd79
treeba37794f8a222cfac4c9ee469bf7beb0d7409f4a
parent41e4af69a5984a3193ba3108fb4e067b0e34dc73
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>
drivers/net/tun.c