diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2020-12-30 17:18:09 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-01-05 16:02:32 -0800 |
commit | 8dc879a1bfe0d710811b24f72b0664f52097673a (patch) | |
tree | d81e62bff46976ba75f9bac32d7d5055792f2d85 /net/nfc | |
parent | 8407b23199b073249fd2056ec18d7cbb74a47534 (diff) |
net: kcm: Replace fput with sockfd_put
The function sockfd_lookup uses fget on the value that is stored in
the file field of the returned structure, so fput should ultimately be
applied to this value. This can be done directly, but it seems better
to use the specific macro sockfd_put, which does the same thing.
Perform a source code refactoring by using the following semantic patch.
// <smpl>
@@
expression s;
@@
s = sockfd_lookup(...)
...
+ sockfd_put(s);
- fput(s->file);
// </smpl>
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions