summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-11-18 15:32:59 -0800
committerBart Van Assche <bart.vanassche@sandisk.com>2016-12-09 10:20:07 -0800
commitecaf597b411e9a7b071bf7a36a4cf750c529cd28 (patch)
treebb11b748f195028f54a2fb88639fd854222899e0 /drivers/target
parent8cc3bb0789eab91e5543c7b9fbc3bde7f9c8973b (diff)
downloadblackbird-op-linux-ecaf597b411e9a7b071bf7a36a4cf750c529cd28.tar.gz
blackbird-op-linux-ecaf597b411e9a7b071bf7a36a4cf750c529cd28.zip
target/user: Fix a data type in tcmu_queue_cmd()
This patch avoids that sparse reports the following error messages: drivers/target/target_core_user.c:547:13: warning: incorrect type in assignment (different base types) drivers/target/target_core_user.c:547:13: expected int [signed] ret drivers/target/target_core_user.c:547:13: got restricted sense_reason_t drivers/target/target_core_user.c:548:20: warning: restricted sense_reason_t degrades to integer drivers/target/target_core_user.c:557:16: warning: incorrect type in return expression (different base types) drivers/target/target_core_user.c:557:16: expected restricted sense_reason_t drivers/target/target_core_user.c:557:16: got int [signed] ret Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index 47562509b489..b9eb0b605b0b 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -537,7 +537,7 @@ tcmu_queue_cmd(struct se_cmd *se_cmd)
struct se_device *se_dev = se_cmd->se_dev;
struct tcmu_dev *udev = TCMU_DEV(se_dev);
struct tcmu_cmd *tcmu_cmd;
- int ret;
+ sense_reason_t ret;
tcmu_cmd = tcmu_alloc_cmd(se_cmd);
if (!tcmu_cmd)
OpenPOWER on IntegriCloud