]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: cleanup the unnecessary return value check
authorHans Zhang <zhanghonghui@huawei.com>
Mon, 22 Oct 2012 22:21:23 +0000 (22:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2012 17:03:44 +0000 (13:03 -0400)
commit9dd3484a93edcb6307518a1f124eb7ed158e3492
treee587ca6e86fff29a3399af3ff5ade7adba1ef118
parent439cbe601b18a7754cab7e31e4b879aab023ec4d
netlink: cleanup the unnecessary return value check

It's no needed to check the return value of tab since the NULL situation
has been handled already, and the rtnl_msg_handlers[PF_UNSPEC] has been
initialized as non-NULL during the rtnetlink_init().

Signed-off-by: Hans Zhang <zhanghonghui@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c