diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-09 19:53:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-09 19:53:47 -0500 |
commit | 92fff53b7191cae566be9ca6752069426c7f8241 (patch) | |
tree | 019396be4719ad3969d0395cfa0a90860be75f4a /drivers/scsi/qedi | |
parent | a50243b1ddcdd766d0d17fbfeeb1a22e62fdc461 (diff) | |
parent | 26af1a368e40618d67956b1f883fbcfec292c5d8 (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI updates from James Bottomley:
"This is mostly update of the usual drivers: arcmsr, qla2xxx, lpfc,
hisi_sas, target/iscsi and target/core.
Additionally Christoph refactored gdth as part of the dma changes. The
major mid-layer change this time is the removal of bidi commands and
with them the whole of the osd/exofs driver and filesystem. This is a
major simplification for block and mq in particular"
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (240 commits)
scsi: cxgb4i: validate tcp sequence number only if chip version <= T5
scsi: cxgb4i: get pf number from lldi->pf
scsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c
scsi: mpt3sas: Add missing breaks in switch statements
scsi: aacraid: Fix missing break in switch statement
scsi: kill command serial number
scsi: csiostor: drop serial_number usage
scsi: mvumi: use request tag instead of serial_number
scsi: dpt_i2o: remove serial number usage
scsi: st: osst: Remove negative constant left-shifts
scsi: ufs-bsg: Allow reading descriptors
scsi: ufs: Allow reading descriptor via raw upiu
scsi: ufs-bsg: Change the calling convention for write descriptor
scsi: ufs: Remove unused device quirks
Revert "scsi: ufs: disable vccq if it's not needed by UFS device"
scsi: megaraid_sas: Remove a bunch of set but not used variables
scsi: clean obsolete return values of eh_timed_out
scsi: sd: Optimal I/O size should be a multiple of physical block size
scsi: MAINTAINERS: SCSI initiator and target tweaks
scsi: fcoe: make use of fip_mode enum complete
...
Diffstat (limited to 'drivers/scsi/qedi')
-rw-r--r-- | drivers/scsi/qedi/qedi_debugfs.c | 17 | ||||
-rw-r--r-- | drivers/scsi/qedi/qedi_fw.c | 7 |
2 files changed, 2 insertions, 22 deletions
diff --git a/drivers/scsi/qedi/qedi_debugfs.c b/drivers/scsi/qedi/qedi_debugfs.c index fd914ca4149a..5667e4752e2e 100644 --- a/drivers/scsi/qedi/qedi_debugfs.c +++ b/drivers/scsi/qedi/qedi_debugfs.c | |||
@@ -23,27 +23,16 @@ qedi_dbg_host_init(struct qedi_dbg_ctx *qedi, | |||
23 | const struct file_operations *fops) | 23 | const struct file_operations *fops) |
24 | { | 24 | { |
25 | char host_dirname[32]; | 25 | char host_dirname[32]; |
26 | struct dentry *file_dentry = NULL; | ||
27 | 26 | ||
28 | sprintf(host_dirname, "host%u", qedi->host_no); | 27 | sprintf(host_dirname, "host%u", qedi->host_no); |
29 | qedi->bdf_dentry = debugfs_create_dir(host_dirname, qedi_dbg_root); | 28 | qedi->bdf_dentry = debugfs_create_dir(host_dirname, qedi_dbg_root); |
30 | if (!qedi->bdf_dentry) | ||
31 | return; | ||
32 | 29 | ||
33 | while (dops) { | 30 | while (dops) { |
34 | if (!(dops->name)) | 31 | if (!(dops->name)) |
35 | break; | 32 | break; |
36 | 33 | ||
37 | file_dentry = debugfs_create_file(dops->name, 0600, | 34 | debugfs_create_file(dops->name, 0600, qedi->bdf_dentry, qedi, |
38 | qedi->bdf_dentry, qedi, | 35 | fops); |
39 | fops); | ||
40 | if (!file_dentry) { | ||
41 | QEDI_INFO(qedi, QEDI_LOG_DEBUGFS, | ||
42 | "Debugfs entry %s creation failed\n", | ||
43 | dops->name); | ||
44 | debugfs_remove_recursive(qedi->bdf_dentry); | ||
45 | return; | ||
46 | } | ||
47 | dops++; | 36 | dops++; |
48 | fops++; | 37 | fops++; |
49 | } | 38 | } |
@@ -60,8 +49,6 @@ void | |||
60 | qedi_dbg_init(char *drv_name) | 49 | qedi_dbg_init(char *drv_name) |
61 | { | 50 | { |
62 | qedi_dbg_root = debugfs_create_dir(drv_name, NULL); | 51 | qedi_dbg_root = debugfs_create_dir(drv_name, NULL); |
63 | if (!qedi_dbg_root) | ||
64 | QEDI_INFO(NULL, QEDI_LOG_DEBUGFS, "Init of debugfs failed\n"); | ||
65 | } | 52 | } |
66 | 53 | ||
67 | void | 54 | void |
diff --git a/drivers/scsi/qedi/qedi_fw.c b/drivers/scsi/qedi/qedi_fw.c index 25d763ae5d5a..e2a995a6e8e7 100644 --- a/drivers/scsi/qedi/qedi_fw.c +++ b/drivers/scsi/qedi/qedi_fw.c | |||
@@ -616,13 +616,6 @@ static void qedi_scsi_completion(struct qedi_ctx *qedi, | |||
616 | goto error; | 616 | goto error; |
617 | } | 617 | } |
618 | 618 | ||
619 | if (!sc_cmd->request->special) { | ||
620 | QEDI_WARN(&qedi->dbg_ctx, | ||
621 | "request->special is NULL so request not valid, sc_cmd=%p.\n", | ||
622 | sc_cmd); | ||
623 | goto error; | ||
624 | } | ||
625 | |||
626 | if (!sc_cmd->request->q) { | 619 | if (!sc_cmd->request->q) { |
627 | QEDI_WARN(&qedi->dbg_ctx, | 620 | QEDI_WARN(&qedi->dbg_ctx, |
628 | "request->q is NULL so request is not valid, sc_cmd=%p.\n", | 621 | "request->q is NULL so request is not valid, sc_cmd=%p.\n", |