From: Tim Shimmin Date: Mon, 28 Nov 2005 14:01:28 +0000 (+0000) Subject: fix unused var warning X-Git-Tag: v2.8.0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a504bf7217b3eacfaab3931c429b043f91a67bfe;p=thirdparty%2Fxfsprogs-dev.git fix unused var warning Merge of master-melb:xfs-cmds:24590a by kenmcd. fix unused var warning --- diff --git a/io/parent.c b/io/parent.c index a34c00a64..c0ac52a24 100644 --- a/io/parent.c +++ b/io/parent.c @@ -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;