summaryrefslogtreecommitdiff
path: root/tonezone.c
diff options
context:
space:
mode:
Diffstat (limited to 'tonezone.c')
-rw-r--r--tonezone.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tonezone.c b/tonezone.c
index 413498f..d470449 100644
--- a/tonezone.c
+++ b/tonezone.c
@@ -369,7 +369,8 @@ int tone_zone_register_zone(int fd, struct tone_zone *z)
x = z->zone;
if ((res = ioctl(fd, ZT_FREEZONE, &x))) {
- fprintf(stderr, "ioctl(ZT_FREEZONE) failed: %s\n", strerror(errno));
+ if (errno != EBUSY)
+ fprintf(stderr, "ioctl(ZT_FREEZONE) failed: %s\n", strerror(errno));
return res;
}