mISDN: Use list_count_nodes()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 27 Apr 2023 13:39:48 +0000 (15:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Apr 2023 08:43:04 +0000 (09:43 +0100)
commite0807c430239d62d8dd7a25552e469aad8c3dd28
tree8884df8495e6d29cca631f947ada33804caa7a0b
parent6e98b09da931a00bf4e0477d0fa52748bf28fcce
mISDN: Use list_count_nodes()

count_list_member() really looks the same as list_count_nodes(), so use the
latter instead of hand writing it.

The first one return an int and the other a size_t, but that should be
fine. It is really unlikely that we get so many parties in a conference.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/dsp_cmx.c