]> granicus.if.org Git - zfs/commitdiff
Fix coverity defects: CID 155964, 155965
authorGeorge Melikov <mail@gmelikov.ru>
Wed, 8 Feb 2017 18:06:02 +0000 (21:06 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 8 Feb 2017 18:06:02 +0000 (10:06 -0800)
CID 155964: Missing break in switch
CID 155965: Missing break in switch

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #5759

lib/libzfs/libzfs_pool.c

index b05c1564eabe36a94012930e003ac396ac8baf98..9abea9023e033ef5dc1ece9217b1a6c45f5151d3 100644 (file)
@@ -679,6 +679,7 @@ zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname,
                                (void) zfs_error(hdl, EZFS_BADPROP, errbuf);
                                goto error;
                        }
+                       break;
 
                default:
                        zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
@@ -999,9 +1000,11 @@ zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool)
                                    "multiple '@' and/or '#' delimiters in "
                                    "name"));
                                break;
+
                        case NAME_ERR_NO_AT:
                                zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
                                    "permission set is missing '@'"));
+                               break;
 
                        default:
                                zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,