diff options
author | Ye Bin <yebin10@huawei.com> | 2020-09-16 10:28:59 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-10-02 22:04:59 -0400 |
commit | 37fa429ef7bad44e5b8dd9fb0b52731b76a3fa99 (patch) | |
tree | 08c3552a6ba72c264c68f108f89e21baea9ef383 /drivers/scsi/lpfc | |
parent | 936dc95d09d8f662c63cd82790c94f38ef49e9df (diff) | |
download | linux-37fa429ef7bad44e5b8dd9fb0b52731b76a3fa99.tar.gz linux-37fa429ef7bad44e5b8dd9fb0b52731b76a3fa99.tar.bz2 linux-37fa429ef7bad44e5b8dd9fb0b52731b76a3fa99.zip |
scsi: lpfc: Remove unneeded variable 'status' in lpfc_fcp_cpu_map_store()
Fixes coccicheck warning:
drivers/scsi/lpfc/lpfc_attr.c:5341:5-11: Unneeded variable: "status". Return "- EINVAL" on line 5342
Link: https://lore.kernel.org/r/20200916022859.349089-1-yebin10@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index ece6c250ebaf..e94eac194676 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -5338,8 +5338,7 @@ static ssize_t lpfc_fcp_cpu_map_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { - int status = -EINVAL; - return status; + return -EINVAL; } /* |