[lvm-devel] master - coverity: missing break in switch expression

Peter Rajnoha prajnoha at fedoraproject.org
Wed Jul 8 12:36:33 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=705fee709fdb2f3f23a5a466d30cf36dab0a9c96
Commit:        705fee709fdb2f3f23a5a466d30cf36dab0a9c96
Parent:        71f4fbfbde720795995abffa1bd8aeaa00706a6b
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Wed Jul 8 14:36:02 2015 +0200
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Wed Jul 8 14:36:02 2015 +0200

coverity: missing break in switch expression

lib/lvmpolld/lvmpolld-client.c:109: fallthrough: The above case falls through to this one
---
 lib/lvmpolld/lvmpolld-client.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/lvmpolld/lvmpolld-client.c b/lib/lvmpolld/lvmpolld-client.c
index d770e74..6676ce9 100644
--- a/lib/lvmpolld/lvmpolld-client.c
+++ b/lib/lvmpolld/lvmpolld-client.c
@@ -106,6 +106,7 @@ static void _explain_error_codes(int retcode)
 	/* lvmpolld specific return codes */
 	case LVMPD_RET_DUP_FAILED:
 		log_error("lvmpolld failed to duplicate file descriptors.");
+		break;
 	case LVMPD_RET_EXC_FAILED:
 		log_error("lvmpolld failed to exec() lvm binary.");
 		break;




More information about the lvm-devel mailing list