]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net/smc: remove unnecessary cast
authorKarsten Graul <kgraul@linux.ibm.com>
Tue, 15 May 2018 15:04:56 +0000 (17:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 15:49:19 +0000 (11:49 -0400)
Remove an unneeded (void *) cast from the calls to
smc_llc_send_message(). No functional changes.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_llc.c

index b118f80b9c4130111e7d43b7650f02ecca4d9dec..29f59b47b559291347fca44d61a68d56977e84ee 100644 (file)
@@ -451,7 +451,7 @@ static void smc_llc_rx_confirm_rkey(struct smc_link *link,
                llc->hd.flags |= SMC_LLC_FLAG_RESP;
                if (rc < 0)
                        llc->hd.flags |= SMC_LLC_FLAG_RKEY_NEG;
-               smc_llc_send_message(link, (void *)llc, sizeof(*llc));
+               smc_llc_send_message(link, llc, sizeof(*llc));
        }
 }
 
@@ -463,7 +463,7 @@ static void smc_llc_rx_confirm_rkey_cont(struct smc_link *link,
        } else {
                /* ignore rtokens for other links, we have only one link */
                llc->hd.flags |= SMC_LLC_FLAG_RESP;
-               smc_llc_send_message(link, (void *)llc, sizeof(*llc));
+               smc_llc_send_message(link, llc, sizeof(*llc));
        }
 }
 
@@ -491,7 +491,7 @@ static void smc_llc_rx_delete_rkey(struct smc_link *link,
                }
 
                llc->hd.flags |= SMC_LLC_FLAG_RESP;
-               smc_llc_send_message(link, (void *)llc, sizeof(*llc));
+               smc_llc_send_message(link, llc, sizeof(*llc));
        }
 }