T0423_reserve6_sessionloss: fix compiler warnings
Remove unused labels and mark unused parameters as such. Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
This commit is contained in:
@@ -22,7 +22,8 @@
|
|||||||
#include "scsi-lowlevel.h"
|
#include "scsi-lowlevel.h"
|
||||||
#include "iscsi-test.h"
|
#include "iscsi-test.h"
|
||||||
|
|
||||||
int T0423_reserve6_sessionloss(const char *initiator, const char *url, int data_loss, int show_info)
|
int T0423_reserve6_sessionloss(const char *initiator, const char *url,
|
||||||
|
int data_loss _U_, int show_info)
|
||||||
{
|
{
|
||||||
struct iscsi_context *iscsi, *iscsi2;
|
struct iscsi_context *iscsi, *iscsi2;
|
||||||
struct scsi_task *task;
|
struct scsi_task *task;
|
||||||
@@ -131,12 +132,10 @@ test3:
|
|||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
printf("[OK]\n");
|
printf("[OK]\n");
|
||||||
|
|
||||||
test4:
|
|
||||||
printf("Drop the session to the first initiator ... ");
|
printf("Drop the session to the first initiator ... ");
|
||||||
iscsi_destroy_context(iscsi);
|
iscsi_destroy_context(iscsi);
|
||||||
printf("[OK]\n");
|
printf("[OK]\n");
|
||||||
|
|
||||||
test5:
|
|
||||||
printf("Verify we can access the LUN from the second initiator ... ");
|
printf("Verify we can access the LUN from the second initiator ... ");
|
||||||
task = iscsi_testunitready_sync(iscsi2, lun);
|
task = iscsi_testunitready_sync(iscsi2, lun);
|
||||||
if (task == NULL) {
|
if (task == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user