From 65675d17d235874572a18fe2f4656e97dc699fe0 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Wed, 19 Jul 2017 16:20:01 -0400 Subject: bldev_read_serial: removed a couple warnings device-inq.c:216:7: warning: this statement may fall through [-Wimplicit-fallthrough=] device-inq.c:223:7: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Steve Dickson --- utils/blkmapd/device-inq.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/blkmapd/device-inq.c') diff --git a/utils/blkmapd/device-inq.c b/utils/blkmapd/device-inq.c index 0062a8f..c7952c3 100644 --- a/utils/blkmapd/device-inq.c +++ b/utils/blkmapd/device-inq.c @@ -216,6 +216,7 @@ struct bl_serial *bldev_read_serial(int fd, const char *filename) if ((dev_id->len != 8) && (dev_id->len != 12) && (dev_id->len != 16)) break; + /* FALLTHRU */ case 3: /* NAA */ /* TODO: NAA validity judgement too complicated, * so just ingore it here. @@ -224,6 +225,7 @@ struct bl_serial *bldev_read_serial(int fd, const char *filename) BL_LOG_ERR("Binary code_set expected\n"); break; } + /* FALLTHRU */ case 0: /* vendor specific */ case 1: /* T10 vendor identification */ current_id = dev_id->ids & 0xf; -- cgit