Re: [Qemu-devel] [PATCH 14/27] vhost-user-scsi: assert() in iscsi_add_lun()

2017-08-23 Thread Philippe Mathieu-Daudé
On 08/23/2017 01:19 PM, Marc-André Lureau wrote: Instead of a preliminary check, add an assert to the function that has the pre-condition. Signed-off-by: Marc-André Lureau --- contrib/vhost-user-scsi/vhost-user-scsi.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/c

[Qemu-devel] [PATCH 14/27] vhost-user-scsi: assert() in iscsi_add_lun()

2017-08-23 Thread Marc-André Lureau
Instead of a preliminary check, add an assert to the function that has the pre-condition. Signed-off-by: Marc-André Lureau --- contrib/vhost-user-scsi/vhost-user-scsi.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/v