forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/scsi/aic94xx/aic94xx_tmf.c
....@@ -1,27 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Aic94xx Task Management Functions
34 *
45 * Copyright (C) 2005 Adaptec, Inc. All rights reserved.
56 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
6
- *
7
- * This file is licensed under GPLv2.
8
- *
9
- * This file is part of the aic94xx driver.
10
- *
11
- * The aic94xx driver is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License as
13
- * published by the Free Software Foundation; version 2 of the
14
- * License.
15
- *
16
- * The aic94xx driver is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
- * General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with the aic94xx driver; if not, write to the Free Software
23
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
- *
257 */
268
279 #include <linux/spinlock.h>
....@@ -508,7 +490,7 @@
508490 switch (tcs.dl_opcode) {
509491 default:
510492 res = asd_clear_nexus(task);
511
- /* fallthrough */
493
+ fallthrough;
512494 case TC_NO_ERROR:
513495 break;
514496 /* The task hasn't been sent to the device xor
....@@ -691,7 +673,7 @@
691673
692674 /**
693675 * asd_query_task -- send a QUERY TASK TMF to an I_T_L_Q nexus
694
- * task: pointer to sas_task struct of interest
676
+ * @task: pointer to sas_task struct of interest
695677 *
696678 * Returns: TMF_RESP_FUNC_COMPLETE if the task is not in the task set,
697679 * or TMF_RESP_FUNC_SUCC if the task is in the task set.