]> git.proxmox.com Git - mirror_qemu.git/commit - contrib/vhost-user-scsi/vhost-user-scsi.c
vhost-user-scsi: assert() in iscsi_add_lun()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 16 Aug 2017 19:21:38 +0000 (21:21 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 10 Oct 2017 21:31:09 +0000 (23:31 +0200)
commitfa2cd143bf381b06f86cce62f16dfa97f387c20d
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