forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/target/tcm_fc/tfc_cmd.c
....@@ -1,18 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2010 Cisco Systems, Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License along with
14
- * this program; if not, write to the Free Software Foundation, Inc.,
15
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
164 */
175
186 /* XXX TBD some includes may be extraneous */
....@@ -182,13 +170,6 @@
182170 */
183171 target_put_sess_cmd(&cmd->se_cmd);
184172 return 0;
185
-}
186
-
187
-int ft_write_pending_status(struct se_cmd *se_cmd)
188
-{
189
- struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd);
190
-
191
- return cmd->write_data_len != se_cmd->data_length;
192173 }
193174
194175 /*
....@@ -556,7 +537,7 @@
556537 case FCP_PTA_ACA:
557538 task_attr = TCM_ACA_TAG;
558539 break;
559
- case FCP_PTA_SIMPLE: /* Fallthrough */
540
+ case FCP_PTA_SIMPLE:
560541 default:
561542 task_attr = TCM_SIMPLE_TAG;
562543 }
....@@ -570,7 +551,7 @@
570551 if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb,
571552 &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun),
572553 ntohl(fcp->fc_dl), task_attr, data_dir,
573
- TARGET_SCF_ACK_KREF | TARGET_SCF_USE_CPUID))
554
+ TARGET_SCF_ACK_KREF))
574555 goto err;
575556
576557 pr_debug("r_ctl %x target_submit_cmd %p\n", fh->fh_r_ctl, cmd);