|
|
51f72b8 |
From: Ronnie Sahlberg <ronniesahlberg@gmail.com>
|
|
|
51f72b8 |
Date: Sat, 3 Jun 2017 11:33:51 -0700
|
|
|
51f72b8 |
Subject: [PATCH] Fix another compiler warning
|
|
|
51f72b8 |
|
|
|
51f72b8 |
We do need a default: arm here as the switch is not supposed to deal with
|
|
|
51f72b8 |
all possible values for the enum.
|
|
|
51f72b8 |
|
|
|
51f72b8 |
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
|
|
|
51f72b8 |
(cherry picked from commit fb45f0343e3de45f2bc7516591d36c7466c2184e)
|
|
|
51f72b8 |
---
|
|
|
51f72b8 |
test-tool/iscsi-support.c | 19 +++++++++++--------
|
|
|
51f72b8 |
1 file changed, 11 insertions(+), 8 deletions(-)
|
|
|
548eb0a |
|
|
|
548eb0a |
diff --git a/test-tool/iscsi-support.c b/test-tool/iscsi-support.c
|
|
|
51f72b8 |
index ed00ce7..3f860ed 100644
|
|
|
548eb0a |
--- a/test-tool/iscsi-support.c
|
|
|
548eb0a |
+++ b/test-tool/iscsi-support.c
|
|
|
51f72b8 |
@@ -2922,14 +2922,17 @@ void populate_ident_tgt_desc(unsigned char *buf, struct scsi_device *dev)
|
|
|
548eb0a |
|
|
|
548eb0a |
for (desig = inq_di->designators; desig; desig = desig->next) {
|
|
|
548eb0a |
switch (desig->designator_type) {
|
|
|
548eb0a |
- case SCSI_DESIGNATOR_TYPE_VENDOR_SPECIFIC:
|
|
|
548eb0a |
- case SCSI_DESIGNATOR_TYPE_T10_VENDORT_ID:
|
|
|
548eb0a |
- case SCSI_DESIGNATOR_TYPE_EUI_64:
|
|
|
548eb0a |
- case SCSI_DESIGNATOR_TYPE_NAA:
|
|
|
548eb0a |
- if (prev_type <= desig->designator_type) {
|
|
|
548eb0a |
- tgt_desig = desig;
|
|
|
548eb0a |
- prev_type = desig->designator_type;
|
|
|
548eb0a |
- }
|
|
|
548eb0a |
+ case SCSI_DESIGNATOR_TYPE_VENDOR_SPECIFIC:
|
|
|
548eb0a |
+ case SCSI_DESIGNATOR_TYPE_T10_VENDORT_ID:
|
|
|
548eb0a |
+ case SCSI_DESIGNATOR_TYPE_EUI_64:
|
|
|
548eb0a |
+ case SCSI_DESIGNATOR_TYPE_NAA:
|
|
|
548eb0a |
+ if (prev_type <= desig->designator_type) {
|
|
|
548eb0a |
+ tgt_desig = desig;
|
|
|
548eb0a |
+ prev_type = desig->designator_type;
|
|
|
548eb0a |
+ }
|
|
|
548eb0a |
+ continue;
|
|
|
548eb0a |
+ default:
|
|
|
548eb0a |
+ continue;
|
|
|
548eb0a |
}
|
|
|
548eb0a |
}
|
|
|
548eb0a |
if (tgt_desig == NULL) {
|