mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 20:48:49 +08:00
scsi: isci: Remove redundant initialization of variable 'status'
The variable 'status' is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Link: https://lore.kernel.org/r/20200723142614.991416-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Addresses-Coverity: ("Unused value")
This commit is contained in:
parent
61965bf6c1
commit
584d902eb1
@ -3444,7 +3444,7 @@ struct isci_request *isci_tmf_request_from_tag(struct isci_host *ihost,
|
|||||||
int isci_request_execute(struct isci_host *ihost, struct isci_remote_device *idev,
|
int isci_request_execute(struct isci_host *ihost, struct isci_remote_device *idev,
|
||||||
struct sas_task *task, u16 tag)
|
struct sas_task *task, u16 tag)
|
||||||
{
|
{
|
||||||
enum sci_status status = SCI_FAILURE_UNSUPPORTED_PROTOCOL;
|
enum sci_status status;
|
||||||
struct isci_request *ireq;
|
struct isci_request *ireq;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user