]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
fix unused var warning
authorTim Shimmin <tes@sgi.com>
Mon, 28 Nov 2005 14:01:28 +0000 (14:01 +0000)
committerTim Shimmin <tes@sgi.com>
Mon, 28 Nov 2005 14:01:28 +0000 (14:01 +0000)
Merge of master-melb:xfs-cmds:24590a by kenmcd.

  fix unused var warning

io/parent.c

index a34c00a641711420cc1c496075529fceb7f376e4..c0ac52a24a4ddd507316d622aa89d2e032c5f953 100644 (file)
@@ -163,7 +163,6 @@ static int
 do_bulkstat(parent_t *parentbuf, xfs_bstat_t *bstatbuf,
            char *mntpt, int fsfd, jdm_fshandle_t *fshandlep)
 {
-       int error;
        __s32 buflenout;
        __u64 lastino = 0;
        xfs_bstat_t *p;
@@ -171,7 +170,7 @@ do_bulkstat(parent_t *parentbuf, xfs_bstat_t *bstatbuf,
        xfs_fsop_bulkreq_t bulkreq;
        struct stat mntstat;
 
-       if ((error = stat(mntpt, &mntstat))) {
+       if (stat(mntpt, &mntstat)) {
                fprintf(stderr, _("can't stat mount point \"%s\": %s\n"),
                        mntpt, strerror(errno));
                return 1;