diff options
author | Shigeru Yoshida <syoshida@redhat.com> | 2023-11-17 09:37:04 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-11-17 02:27:27 +0000 |
commit | d580d265e9abb8c4e1e891051c7b03f3eac86055 (patch) | |
tree | 7b4a9c17659b4b8f6d3f72de65bb726bf9fa184a /ipc | |
parent | 7c93d177d913a3a43bcb8f8edd4e2f78074a18a3 (diff) |
tipc: Remove redundant call to TLV_SPACE()
The purpose of TLV_SPACE() is to add the TLV descriptor size to the size of
the TLV value passed as argument and align the resulting size to
TLV_ALIGNTO.
tipc_tlv_alloc() calls TLV_SPACE() on its argument. In other words,
tipc_tlv_alloc() takes its argument as the size of the TLV value. So the
call to TLV_SPACE() in tipc_get_err_tlv() is redundant. Let's remove this
redundancy.
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Shigeru Yoshida <syoshida@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions