target/user: Fix a data type in tcmu_queue_cmd()
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 18 Nov 2016 23:32:59 +0000 (15:32 -0800)
committerBart Van Assche <bart.vanassche@sandisk.com>
Fri, 9 Dec 2016 18:20:07 +0000 (10:20 -0800)
commitecaf597b411e9a7b071bf7a36a4cf750c529cd28
treebb11b748f195028f54a2fb88639fd854222899e0
parent8cc3bb0789eab91e5543c7b9fbc3bde7f9c8973b
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>
drivers/target/target_core_user.c