diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-11-19 02:32:59 +0300 |
---|---|---|
committer | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-12-09 21:20:07 +0300 |
commit | ecaf597b411e9a7b071bf7a36a4cf750c529cd28 (patch) | |
tree | bb11b748f195028f54a2fb88639fd854222899e0 /drivers/target/target_core_user.c | |
parent | 8cc3bb0789eab91e5543c7b9fbc3bde7f9c8973b (diff) | |
download | linux-ecaf597b411e9a7b071bf7a36a4cf750c529cd28.tar.xz |
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/target_core_user.c')
-rw-r--r-- | drivers/target/target_core_user.c | 2 |
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) |