yshigeru / linux-devel

Linux kernel source tree
Other
0 stars 0 forks source link

tipc: Consolidate redundant functions #36

Closed yshigeru closed 4 months ago

yshigeru commented 4 months ago

link.cの以下の2つの関数を1つにまとめる:

static int link_is_up(struct tipc_link *l)
{
    return l->state & (LINK_ESTABLISHED | LINK_SYNCHING);
}
[...]
bool tipc_link_is_up(struct tipc_link *l)
{
    return link_is_up(l);
}
yshigeru commented 4 months ago

Sent v1 patch: https://lore.kernel.org/all/20240709143632.352656-1-syoshida@redhat.com/

yshigeru commented 4 months ago

Merged on the net-next tree: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=b6c67967897e2e02482f7bbd26232090a6e30ae5