Commit db4f854c authored by Dan Carpenter's avatar Dan Carpenter Committed by Thadeu Lima de Souza Cascardo

scsi: scsi_dh_emc: return success in clariion_std_inquiry()

BugLink: http://bugs.launchpad.net/bugs/1729105


[ Upstream commit 4d7d39a1 ]

We accidentally return an uninitialized variable on success.

Fixes: b6ff1b14 ("[SCSI] scsi_dh: Update EMC handler")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5252a28b
......@@ -456,7 +456,7 @@ static int clariion_prep_fn(struct scsi_device *sdev, struct request *req)
static int clariion_std_inquiry(struct scsi_device *sdev,
struct clariion_dh_data *csdev)
{
int err;
int err = SCSI_DH_OK;
char *sp_model;
err = send_inquiry_cmd(sdev, 0, csdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment