summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon.c
diff options
context:
space:
mode:
authorKarel Zak2012-01-31 20:59:54 +0100
committerKarel Zak2012-01-31 20:59:54 +0100
commitf8ff4ebb1567b5ad1822ce7d3eed2e95a4a95265 (patch)
tree35f562e963bcd78180f8cfc3e7bc9c97cc6632fa /sys-utils/swapon.c
parentumount: add missing break (diff)
downloadkernel-qcow2-util-linux-f8ff4ebb1567b5ad1822ce7d3eed2e95a4a95265.tar.gz
kernel-qcow2-util-linux-f8ff4ebb1567b5ad1822ce7d3eed2e95a4a95265.tar.xz
kernel-qcow2-util-linux-f8ff4ebb1567b5ad1822ce7d3eed2e95a4a95265.zip
swapon: add break to keep static analysers happy
Diffstat (limited to 'sys-utils/swapon.c')
-rw-r--r--sys-utils/swapon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index e37d8a251..7b45d374f 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -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 */
}