RDMA/srp: Remove two casts
This patch does not change any functionality. Link: https://lore.kernel.org/r/20190930231707.48259-7-bvanassche@acm.org Cc: Honggang LI <honli@redhat.com> Cc: Laurence Oberman <loberman@redhat.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
934f05b05d
commit
14673778d0
@ -352,8 +352,8 @@ static int srp_new_rdma_cm_id(struct srp_rdma_ch *ch)
|
|||||||
|
|
||||||
init_completion(&ch->done);
|
init_completion(&ch->done);
|
||||||
ret = rdma_resolve_addr(new_cm_id, target->rdma_cm.src_specified ?
|
ret = rdma_resolve_addr(new_cm_id, target->rdma_cm.src_specified ?
|
||||||
(struct sockaddr *)&target->rdma_cm.src : NULL,
|
&target->rdma_cm.src.sa : NULL,
|
||||||
(struct sockaddr *)&target->rdma_cm.dst,
|
&target->rdma_cm.dst.sa,
|
||||||
SRP_PATH_REC_TIMEOUT_MS);
|
SRP_PATH_REC_TIMEOUT_MS);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err("No route available from %pIS to %pIS (%d)\n",
|
pr_err("No route available from %pIS to %pIS (%d)\n",
|
||||||
|
@ -245,11 +245,13 @@ struct srp_target_port {
|
|||||||
union {
|
union {
|
||||||
struct sockaddr_in ip4;
|
struct sockaddr_in ip4;
|
||||||
struct sockaddr_in6 ip6;
|
struct sockaddr_in6 ip6;
|
||||||
|
struct sockaddr sa;
|
||||||
struct sockaddr_storage ss;
|
struct sockaddr_storage ss;
|
||||||
} src;
|
} src;
|
||||||
union {
|
union {
|
||||||
struct sockaddr_in ip4;
|
struct sockaddr_in ip4;
|
||||||
struct sockaddr_in6 ip6;
|
struct sockaddr_in6 ip6;
|
||||||
|
struct sockaddr sa;
|
||||||
struct sockaddr_storage ss;
|
struct sockaddr_storage ss;
|
||||||
} dst;
|
} dst;
|
||||||
bool src_specified;
|
bool src_specified;
|
||||||
|
Loading…
Reference in New Issue
Block a user