From 3f5e2ba4b44521c09a870636b3e8d6bd53a4dca3 Mon Sep 17 00:00:00 2001 From: Markeryang <747675909@qq.com> Date: Wed, 29 Jul 2020 17:14:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=200001-Fix?= =?UTF-8?q?-another-compiler-warning.patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0001-Fix-another-compiler-warning.patch | 43 ------------------------- 1 file changed, 43 deletions(-) delete mode 100644 0001-Fix-another-compiler-warning.patch diff --git a/0001-Fix-another-compiler-warning.patch b/0001-Fix-another-compiler-warning.patch deleted file mode 100644 index e8aa623..0000000 --- a/0001-Fix-another-compiler-warning.patch +++ /dev/null @@ -1,43 +0,0 @@ -From: Ronnie Sahlberg -Date: Sat, 3 Jun 2017 11:33:51 -0700 -Subject: [PATCH] Fix another compiler warning - -We do need a default: arm here as the switch is not supposed to deal with -all possible values for the enum. - -Signed-off-by: Ronnie Sahlberg -(cherry picked from commit fb45f0343e3de45f2bc7516591d36c7466c2184e) ---- - test-tool/iscsi-support.c | 19 +++++++++++-------- - 1 file changed, 11 insertions(+), 8 deletions(-) - -diff --git a/test-tool/iscsi-support.c b/test-tool/iscsi-support.c -index ed00ce7..3f860ed 100644 ---- a/test-tool/iscsi-support.c -+++ b/test-tool/iscsi-support.c -@@ -2922,14 +2922,17 @@ void populate_ident_tgt_desc(unsigned char *buf, struct scsi_device *dev) - - for (desig = inq_di->designators; desig; desig = desig->next) { - switch (desig->designator_type) { -- case SCSI_DESIGNATOR_TYPE_VENDOR_SPECIFIC: -- case SCSI_DESIGNATOR_TYPE_T10_VENDORT_ID: -- case SCSI_DESIGNATOR_TYPE_EUI_64: -- case SCSI_DESIGNATOR_TYPE_NAA: -- if (prev_type <= desig->designator_type) { -- tgt_desig = desig; -- prev_type = desig->designator_type; -- } -+ case SCSI_DESIGNATOR_TYPE_VENDOR_SPECIFIC: -+ case SCSI_DESIGNATOR_TYPE_T10_VENDORT_ID: -+ case SCSI_DESIGNATOR_TYPE_EUI_64: -+ case SCSI_DESIGNATOR_TYPE_NAA: -+ if (prev_type <= desig->designator_type) { -+ tgt_desig = desig; -+ prev_type = desig->designator_type; -+ } -+ continue; -+ default: -+ continue; - } - } - if (tgt_desig == NULL) {