From 276aeeb21172d8b56483801245cf1502152cad36 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Tue, 28 Jun 2022 02:39:12 +0300 Subject: [PATCH] iscsi-scst: Make exit_tx() return void exit_tx() doesn't change the return variable res, so make it return void. This patch doesn't change any functionality. --- iscsi-scst/kernel/nthread.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index db09f65d3..5709a0e9c 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -1331,7 +1331,7 @@ out_err: goto out; } -static int exit_tx(struct iscsi_conn *conn, int res) +static void exit_tx(struct iscsi_conn *conn, int res) { iscsi_extracheck_is_wr_thread(conn); @@ -1355,7 +1355,8 @@ static int exit_tx(struct iscsi_conn *conn, int res) mark_conn_closed(conn); break; } - return res; + + return; } static int tx_ddigest(struct iscsi_cmnd *cmnd, int state) @@ -1377,7 +1378,7 @@ static int tx_ddigest(struct iscsi_cmnd *cmnd, int state) if (!cmnd->conn->write_size) cmnd->conn->write_state = state; } else - res = exit_tx(cmnd->conn, res); + exit_tx(cmnd->conn, res); return res; } @@ -1424,7 +1425,7 @@ static int tx_padding(struct iscsi_cmnd *cmnd, int state) if (!cmnd->conn->write_size) cmnd->conn->write_state = state; } else - res = exit_tx(cmnd->conn, res); + exit_tx(cmnd->conn, res); return res; } @@ -1440,7 +1441,7 @@ static int iscsi_do_send(struct iscsi_conn *conn, int state) if (!conn->write_size) conn->write_state = state; } else - res = exit_tx(conn, res); + exit_tx(conn, res); return res; }