vhost-user-scsi: assert() in iscsi_add_lun()
commitfa2cd143bf381b06f86cce62f16dfa97f387c20d
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 16 Aug 2017 19:21:38 +0000 (16 21:21 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 10 Oct 2017 21:31:09 +0000 (10 23:31 +0200)
tree130506c2bda218164dbf4cb56ef619e5f7f424cc
parent689a9945e658b714097652413976b639798150c8
vhost-user-scsi: assert() in iscsi_add_lun()

Instead of a preliminary check, add an assert to the function that has
the pre-condition.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
contrib/vhost-user-scsi/vhost-user-scsi.c