summaryrefslogtreecommitdiffstats
path: root/net/tipc/name_table.c
diff options
context:
space:
mode:
authorwangweidong <wangweidong1@huawei.com>2013-12-12 02:36:39 +0100
committerDavid S. Miller <davem@davemloft.net>2013-12-16 18:48:35 +0100
commit0cee6bbe06f67ff7dd83a4bc794f23c5cd5e7929 (patch)
tree59864290d3b49dbf64e42c53030e883461125998 /net/tipc/name_table.c
parentnet-ipv6: Fix alleged compiler warning in ipv6_exthdrs_len() (diff)
downloadlinux-0cee6bbe06f67ff7dd83a4bc794f23c5cd5e7929.tar.xz
linux-0cee6bbe06f67ff7dd83a4bc794f23c5cd5e7929.zip
tipc: remove unnecessary variables and conditions
We remove a number of unnecessary variables and branches in TIPC. This patch is cosmetic and does not change the operation of TIPC in any way. Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Signed-off-by: Wang Weidong <wangweidong1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/name_table.c')
-rw-r--r--net/tipc/name_table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c
index 09dcd54b04e1..92a1533af4e0 100644
--- a/net/tipc/name_table.c
+++ b/net/tipc/name_table.c
@@ -148,8 +148,7 @@ static struct publication *publ_create(u32 type, u32 lower, u32 upper,
*/
static struct sub_seq *tipc_subseq_alloc(u32 cnt)
{
- struct sub_seq *sseq = kcalloc(cnt, sizeof(struct sub_seq), GFP_ATOMIC);
- return sseq;
+ return kcalloc(cnt, sizeof(struct sub_seq), GFP_ATOMIC);
}
/**