[PATCH] rds: send: Replace sg++ with sg = sg_next(sg)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replace sg++ with sg = sg_next(sg).

Signed-off-by: Xu Wang <vulab@xxxxxxxxxxx>
---
 net/rds/send.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/rds/send.c b/net/rds/send.c
index 68e2bdb08fd0..57d03a6753de 100644
--- a/net/rds/send.c
+++ b/net/rds/send.c
@@ -387,7 +387,7 @@ int rds_send_xmit(struct rds_conn_path *cp)
 				ret -= tmp;
 				if (cp->cp_xmit_data_off == sg->length) {
 					cp->cp_xmit_data_off = 0;
-					sg++;
+					sg = sg_next(sg);
 					cp->cp_xmit_sg++;
 					BUG_ON(ret != 0 && cp->cp_xmit_sg ==
 					       rm->data.op_nents);
-- 
2.17.1




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux