From 971c23a4dd53495be33cf531a02a8fd7b3202b92 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 28 Jun 2012 11:31:13 +0000 Subject: [PATCH] scst: Remove a superfluous test from the REPORT TARGET PORT GROUPS implementation git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4383 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index ea38cd195..cd83a5ff7 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -3148,11 +3148,6 @@ static enum compl_status_e vdisk_exec_report_tpgs(struct vdisk_cmd_params *p) goto out; } - if (cmd->cdb_len < 12) - PRINT_WARNING("received invalid REPORT TARGET PORT GROUPS " - "command - length %d is too small (should be at " - "least 12 bytes)", cmd->cdb_len); - dev = cmd->dev; data_format = cmd->cdb[1] >> 5;