diff options
author | Rosen Penev <rosenp@gmail.com> | 2018-11-05 11:06:42 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-11-13 13:22:19 +0100 |
commit | 803c916907b37185dd214b626486bf759311c627 (patch) | |
tree | c70813e19c0c6e719739dcfb9cc079ebf3cfcee4 | |
parent | ed570e2df335063280c9d3affd8bb89919a1ac0d (diff) |
btrfs-progs: task-utils: Fix comparison between pointer and integer
pthread_t is an opaque type, not an integer one. The > 0 makes no sense
and compiler throws a warning.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | task-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/task-utils.c b/task-utils.c index a9bee8f4..e4dcd36b 100644 --- a/task-utils.c +++ b/task-utils.c @@ -67,7 +67,7 @@ void task_stop(struct task_info *info) if (!info) return; - if (info->id > 0) { + if (info->id) { pthread_cancel(info->id); pthread_join(info->id, NULL); info->id = 0; |