forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/scsi/bfa/bfad_im.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
34 * Copyright (c) 2014- QLogic Corporation.
....@@ -5,15 +6,6 @@
56 * www.qlogic.com
67 *
78 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License (GPL) Version 2 as
11
- * published by the Free Software Foundation
12
- *
13
- * This program is distributed in the hope that it will be useful, but
14
- * WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- * General Public License for more details.
179 */
1810
1911 /*
....@@ -544,7 +536,7 @@
544536 struct device *dev)
545537 {
546538 struct bfad_im_port_pointer *im_portp;
547
- int error = 1;
539
+ int error;
548540
549541 mutex_lock(&bfad_mutex);
550542 error = idr_alloc(&bfad_im_port_index, im_port, 0, 0, GFP_KERNEL);
....@@ -817,7 +809,6 @@
817809 .this_id = -1,
818810 .sg_tablesize = BFAD_IO_MAX_SGE,
819811 .cmd_per_lun = 3,
820
- .use_clustering = ENABLE_CLUSTERING,
821812 .shost_attrs = bfad_im_host_attrs,
822813 .max_sectors = BFAD_MAX_SECTORS,
823814 .vendor_id = BFA_PCI_VENDOR_ID_BROCADE,
....@@ -840,7 +831,6 @@
840831 .this_id = -1,
841832 .sg_tablesize = BFAD_IO_MAX_SGE,
842833 .cmd_per_lun = 3,
843
- .use_clustering = ENABLE_CLUSTERING,
844834 .shost_attrs = bfad_im_vport_attrs,
845835 .max_sectors = BFAD_MAX_SECTORS,
846836 };