Commit fbecb659 authored by Joern Engel's avatar Joern Engel Committed by Nicholas Bellinger

iscsi-target: remove unused debug code

Last user of buf was removed with c6037cc5.  While at it,
free_cpumask_var() handles a NULL argument just fine, so remove the
conditionals.
Signed-off-by: default avatarJoern Engel <joern@logfs.org>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent c6c2a3de
...@@ -3709,7 +3709,6 @@ static inline void iscsit_thread_check_cpumask( ...@@ -3709,7 +3709,6 @@ static inline void iscsit_thread_check_cpumask(
struct task_struct *p, struct task_struct *p,
int mode) int mode)
{ {
char buf[128];
/* /*
* mode == 1 signals iscsi_target_tx_thread() usage. * mode == 1 signals iscsi_target_tx_thread() usage.
* mode == 0 signals iscsi_target_rx_thread() usage. * mode == 0 signals iscsi_target_rx_thread() usage.
...@@ -3728,8 +3727,6 @@ static inline void iscsit_thread_check_cpumask( ...@@ -3728,8 +3727,6 @@ static inline void iscsit_thread_check_cpumask(
* both TX and RX kthreads are scheduled to run on the * both TX and RX kthreads are scheduled to run on the
* same CPU. * same CPU.
*/ */
memset(buf, 0, 128);
cpumask_scnprintf(buf, 128, conn->conn_cpumask);
set_cpus_allowed_ptr(p, conn->conn_cpumask); set_cpus_allowed_ptr(p, conn->conn_cpumask);
} }
...@@ -4326,8 +4323,7 @@ int iscsit_close_connection( ...@@ -4326,8 +4323,7 @@ int iscsit_close_connection(
if (conn->conn_tx_hash.tfm) if (conn->conn_tx_hash.tfm)
crypto_free_hash(conn->conn_tx_hash.tfm); crypto_free_hash(conn->conn_tx_hash.tfm);
if (conn->conn_cpumask) free_cpumask_var(conn->conn_cpumask);
free_cpumask_var(conn->conn_cpumask);
kfree(conn->conn_ops); kfree(conn->conn_ops);
conn->conn_ops = NULL; conn->conn_ops = NULL;
......
...@@ -1190,8 +1190,7 @@ void iscsi_target_login_sess_out(struct iscsi_conn *conn, ...@@ -1190,8 +1190,7 @@ void iscsi_target_login_sess_out(struct iscsi_conn *conn,
if (!IS_ERR(conn->conn_tx_hash.tfm)) if (!IS_ERR(conn->conn_tx_hash.tfm))
crypto_free_hash(conn->conn_tx_hash.tfm); crypto_free_hash(conn->conn_tx_hash.tfm);
if (conn->conn_cpumask) free_cpumask_var(conn->conn_cpumask);
free_cpumask_var(conn->conn_cpumask);
kfree(conn->conn_ops); kfree(conn->conn_ops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment