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)
commitc80bbeaec98b36eeba9c6c77061226034d5c4622
treee587ca6e86fff29a3399af3ff5ade7adba1ef118
parent45f00f99d6e73a7b9e1d7dc191f78357f550d5b5
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