projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d82303d
)
sctp: sm_statefuns: Remove pointer casts of the same type
author
Li zeming
<zeming@nfschina.com>
Tue, 15 Nov 2022 02:07:05 +0000
(10:07 +0800)
committer
Paolo Abeni
<pabeni@redhat.com>
Thu, 17 Nov 2022 12:04:37 +0000
(13:04 +0100)
The subh.addip_hdr pointer is also of type (struct sctp_addiphdr *), so
it does not require a cast.
Signed-off-by: Li zeming <zeming@nfschina.com>
Link:
https://lore.kernel.org/r/20221115020705.3220-1-zeming@nfschina.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/sctp/sm_statefuns.c
patch
|
blob
|
history
diff --git
a/net/sctp/sm_statefuns.c
b/net/sctp/sm_statefuns.c
index f6ee7f4040c14ef087ab8faca4552a2f9c505e9a..ce54261712062512a60da8b453432cc9c5dc0d56 100644
(file)
--- a/
net/sctp/sm_statefuns.c
+++ b/
net/sctp/sm_statefuns.c
@@
-4044,7
+4044,7
@@
enum sctp_disposition sctp_sf_do_asconf_ack(struct net *net,
(void *)err_param, commands);
if (last_asconf) {
- addip_hdr =
(struct sctp_addiphdr *)
last_asconf->subh.addip_hdr;
+ addip_hdr = last_asconf->subh.addip_hdr;
sent_serial = ntohl(addip_hdr->serial);
} else {
sent_serial = asoc->addip_serial - 1;