mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 07:29:42 -05:00
scsi: iscsi_tcp: Remove a set-but-not-used variable
This patch avoids that gcc reports the following warning when building with W=1: drivers/scsi/iscsi_tcp.c:166:24: warning: variable ?session? set but not used [-Wunused-but-set-variable] Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Cc: Lee Duncan <[email protected]> Cc: Johannes Thumshirn <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
ab17241cef
commit
052d8a7cbf
1 changed files with 0 additions and 2 deletions
|
|
@ -163,7 +163,6 @@ static void iscsi_sw_tcp_state_change(struct sock *sk)
|
|||
struct iscsi_tcp_conn *tcp_conn;
|
||||
struct iscsi_sw_tcp_conn *tcp_sw_conn;
|
||||
struct iscsi_conn *conn;
|
||||
struct iscsi_session *session;
|
||||
void (*old_state_change)(struct sock *);
|
||||
|
||||
read_lock_bh(&sk->sk_callback_lock);
|
||||
|
|
@ -172,7 +171,6 @@ static void iscsi_sw_tcp_state_change(struct sock *sk)
|
|||
read_unlock_bh(&sk->sk_callback_lock);
|
||||
return;
|
||||
}
|
||||
session = conn->session;
|
||||
|
||||
iscsi_sw_sk_state_check(sk);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue