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>
This commit is contained in:
Rosen Penev 2018-11-05 11:06:42 -08:00 committed by David Sterba
parent ed570e2df3
commit 803c916907
1 changed files with 1 additions and 1 deletions

View File

@ -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;