diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 28d1967e7..b27d13c9a 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -5770,8 +5770,7 @@ struct scst_cmd *__scst_create_prepare_internal_cmd(const uint8_t *cdb, } scst_sess_get(res->sess); - if (res->tgt_dev != NULL) - res->cpu_cmd_counter = scst_get(); + res->cpu_cmd_counter = scst_get(); TRACE(TRACE_SCSI, "New internal cmd %p (op %s)", res, scst_get_opcode_name(res));