mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
Cleanup.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1797 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2770,12 +2770,6 @@ static int srpt_xmit_response(struct scst_cmd *scmnd)
|
||||
int resp_len;
|
||||
enum srpt_command_state prev_state;
|
||||
|
||||
if (unlikely(scst_cmd_atomic(scmnd))) {
|
||||
TRACE_DBG("%s", "Switching to thread context.");
|
||||
ret = SCST_TGT_RES_NEED_THREAD_CTX;
|
||||
goto out;
|
||||
}
|
||||
|
||||
EXTRACHECKS_BUG_ON(scst_cmd_atomic(scmnd));
|
||||
|
||||
ioctx = scst_cmd_get_tgt_priv(scmnd);
|
||||
@@ -3501,7 +3495,6 @@ static int __init srpt_init_module(void)
|
||||
goto out;
|
||||
}
|
||||
|
||||
srpt_template.xmit_response_atomic = !thread;
|
||||
srpt_template.rdy_to_xfer_atomic = !thread;
|
||||
ret = scst_register_target_template(&srpt_template);
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user