diff options
author | Stefan Raspl <raspl@linux.ibm.com> | 2018-07-23 13:53:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-23 10:57:14 -0700 |
commit | bac6de7b637018f4caacfdf2b4ad8c8749de7420 (patch) | |
tree | 033c8d16a80680825802ec8b43a0f56e0b6e5610 /net/smc/af_smc.c | |
parent | c601171d7a60b5b09d7c2fe0579953323a80744e (diff) | |
download | blackbird-obmc-linux-bac6de7b637018f4caacfdf2b4ad8c8749de7420.tar.gz blackbird-obmc-linux-bac6de7b637018f4caacfdf2b4ad8c8749de7420.zip |
net/smc: eliminate cursor read and write calls
The functions to read and write cursors are exclusively used to copy
cursors. Therefore switch to a respective function instead.
Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/af_smc.c')
-rw-r--r-- | net/smc/af_smc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c index 143b2220c0c8..7fc810ec31c5 100644 --- a/net/smc/af_smc.c +++ b/net/smc/af_smc.c @@ -1755,12 +1755,8 @@ static int smc_ioctl(struct socket *sock, unsigned int cmd, smc->sk.sk_state == SMC_CLOSED) { answ = 0; } else { - smc_curs_write(&cons, - smc_curs_read(&conn->local_tx_ctrl.cons, conn), - conn); - smc_curs_write(&urg, - smc_curs_read(&conn->urg_curs, conn), - conn); + smc_curs_copy(&cons, &conn->local_tx_ctrl.cons, conn); + smc_curs_copy(&urg, &conn->urg_curs, conn); answ = smc_curs_diff(conn->rmb_desc->len, &cons, &urg) == 1; } |