]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: add break to keep static analysers happy
authorKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2012 19:59:54 +0000 (20:59 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2012 19:59:54 +0000 (20:59 +0100)
sys-utils/swapon.c

index e37d8a251165830aece032dd8d291ec4240ec7aa..7b45d374f3c80bb9b3e2d4d73f02d1e8d4f63ab5 100644 (file)
@@ -303,6 +303,7 @@ swap_reinitialize(const char *device) {
                /* mkswap returns: 0=suss, 1=error */
                if (WIFEXITED(status) && WEXITSTATUS(status)==0)
                        return 0; /* ok */
+               break;
        }
        return -1; /* error */
 }