Commit 993403b9 authored by Andrew Kanner's avatar Andrew Kanner Committed by Greg Kroah-Hartman

staging: lustre: fixed shadowed variable in socklnd_cb.c

Removed redundant declaration of variable 'tx' in local scope
Fixed: sparse warning:
socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one
socklnd_cb.c:2435:25: originally declared here
Signed-off-by: default avatarAndrew Kanner <andrew.kanner@gmail.com>
Reviewed-by: default avatarJames Simmons <jsimmons@infradead.org>
Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93497d24
...@@ -2473,8 +2473,8 @@ ksocknal_check_peer_timeouts(int idx) ...@@ -2473,8 +2473,8 @@ ksocknal_check_peer_timeouts(int idx)
* holding only shared lock * holding only shared lock
*/ */
if (!list_empty(&peer->ksnp_tx_queue)) { if (!list_empty(&peer->ksnp_tx_queue)) {
struct ksock_tx *tx = list_entry(peer->ksnp_tx_queue.next, tx = list_entry(peer->ksnp_tx_queue.next,
struct ksock_tx, tx_list); struct ksock_tx, tx_list);
if (cfs_time_aftereq(cfs_time_current(), if (cfs_time_aftereq(cfs_time_current(),
tx->tx_deadline)) { tx->tx_deadline)) {
......
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