]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: minor sparse fixes
authorEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
Remove stray semicolon, add missing return.

Fixes sparse warnings about this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/init.c
repair/agheader.c

index 82774c7c569bef650a41022e584ac512cf51ba80..e9449a28ec85d37234e1123c45db1b4e75a41211 100644 (file)
--- a/io/init.c
+++ b/io/init.c
@@ -240,6 +240,7 @@ idle_loop(void *arg)
 {
        for (;;)
                pause();
+       return NULL;
 }
 
 void
index 77e04f60e9be36f6c44c19f19c2a498c5a957081..218ee256a28987a029bcf514690f0a1eacc22822 100644 (file)
@@ -245,7 +245,7 @@ secondary_sb_whack(
        int             do_bzero = 0;
        int             size;
        char            *ip;
-       int             rval = 0;;
+       int             rval = 0;
        uuid_t          tmpuuid;
 
        rval = do_bzero = 0;