Found by coverity.

Signed-off-by: Hannes Reinecke <[email protected]>
---
 libmultipath/prioritizers/hds.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libmultipath/prioritizers/hds.c b/libmultipath/prioritizers/hds.c
index 8043b5b..db8c4c0 100644
--- a/libmultipath/prioritizers/hds.c
+++ b/libmultipath/prioritizers/hds.c
@@ -151,6 +151,7 @@ int hds_modular_prio (const char *dev, int fd)
                        return 0;
                        break;
                }
+               break;
        case '1': case '3': case '5': case '7': case '9':
                switch (ldev[3]) {
                case '0': case '2': case '4': case '6': case '8': case 'A': 
case 'C': case 'E':
@@ -162,6 +163,7 @@ int hds_modular_prio (const char *dev, int fd)
                        return 1;
                        break;
                }
+               break;
        }
        return -1;
 }
-- 
2.6.6

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to