Skip to content

Commit

Permalink
scsi: lpfc: Remove unneeded variable 'status' in lpfc_fcp_cpu_map_sto…
Browse files Browse the repository at this point in the history
…re()

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>
  • Loading branch information
Ye Bin authored and Martin K. Petersen committed Oct 3, 2020
1 parent 936dc95 commit 37fa429
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/lpfc/lpfc_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit 37fa429

Please sign in to comment.