sctp: use list_is_singular in sctp_list_single_entry
authorGeliang Tang <geliangtang@gmail.com>
Sun, 28 Jun 2020 09:32:25 +0000 (17:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jun 2020 04:45:58 +0000 (21:45 -0700)
commit6fc3e68f5b35c4861b28733fa32f636db7188746
tree19e74dc9ac656a4c49d11df68f2135127d86ac21
parentac6a86a5392f123671e309697ec7b8f0c6f01c62
sctp: use list_is_singular in sctp_list_single_entry

Use list_is_singular() instead of open-coding.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h