|
From: <bva...@us...> - 2020-07-12 23:32:02
|
Revision: 9047
http://sourceforge.net/p/scst/svn/9047
Author: bvassche
Date: 2020-07-12 23:32:00 +0000 (Sun, 12 Jul 2020)
Log Message:
-----------
scst: Introduce a local variable
This patch does not change any functionality.
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2020-07-12 23:31:34 UTC (rev 9046)
+++ trunk/scst/src/scst_targ.c 2020-07-12 23:32:00 UTC (rev 9047)
@@ -4181,14 +4181,16 @@
rcu_read_unlock();
if (tgt_dev) {
+ struct scst_device *dev = tgt_dev->dev;
+
TRACE_DBG("tgt_dev %p found", tgt_dev);
- if (likely(tgt_dev->dev->handler != &scst_null_devtype)) {
+ if (likely(dev->handler != &scst_null_devtype)) {
cmd->cmd_threads = tgt_dev->active_cmd_threads;
cmd->tgt_dev = tgt_dev;
cmd->cur_order_data = tgt_dev->curr_order_data;
- cmd->dev = tgt_dev->dev;
- cmd->devt = tgt_dev->dev->handler;
+ cmd->dev = dev;
+ cmd->devt = dev->handler;
res = 0;
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|