hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/scsi/bfa/bfad_debugfs.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 #include <linux/debugfs.h>
....@@ -460,11 +452,6 @@
460452 if (!bfa_debugfs_root) {
461453 bfa_debugfs_root = debugfs_create_dir("bfa", NULL);
462454 atomic_set(&bfa_debugfs_port_count, 0);
463
- if (!bfa_debugfs_root) {
464
- printk(KERN_WARNING
465
- "BFA debugfs root dir creation failed\n");
466
- goto err;
467
- }
468455 }
469456
470457 /* Setup the pci_dev debugfs directory for the port */
....@@ -472,12 +459,6 @@
472459 if (!port->port_debugfs_root) {
473460 port->port_debugfs_root =
474461 debugfs_create_dir(name, bfa_debugfs_root);
475
- if (!port->port_debugfs_root) {
476
- printk(KERN_WARNING
477
- "bfa %s: debugfs root creation failed\n",
478
- bfad->pci_name);
479
- goto err;
480
- }
481462
482463 atomic_inc(&bfa_debugfs_port_count);
483464
....@@ -489,16 +470,9 @@
489470 port->port_debugfs_root,
490471 port,
491472 file->fops);
492
- if (!bfad->bfad_dentry_files[i]) {
493
- printk(KERN_WARNING
494
- "bfa %s: debugfs %s creation failed\n",
495
- bfad->pci_name, file->name);
496
- goto err;
497
- }
498473 }
499474 }
500475
501
-err:
502476 return;
503477 }
504478