diff --git a/src/test/tools/fallocate_detect/fallocate_detect.c b/src/test/tools/fallocate_detect/fallocate_detect.c
index 9a328a2c42506e953659d4a809a7e8c4e0ebb2df..296968ed92707e53bde9dacdf38dae57d4f8b567 100644
--- a/src/test/tools/fallocate_detect/fallocate_detect.c
+++ b/src/test/tools/fallocate_detect/fallocate_detect.c
@@ -44,10 +44,6 @@
 #include <linux/magic.h>
 #include <sys/vfs.h>
 
-#ifndef XFS_SUPER_MAGIC
-#define XFS_SUPER_MAGIC 0x58465342
-#endif
-
 /*
  * posix_fallocate on Linux is implemented using fallocate
  * syscall. This syscall requires file system-specific code on
@@ -79,8 +75,7 @@ check_fallocate(const char *file)
 
 	struct statfs fs;
 	if (!fstatfs(fd, &fs)) {
-		if (fs.f_type != EXT4_SUPER_MAGIC && /* also ext2, ext3 */
-		    fs.f_type != XFS_SUPER_MAGIC) {
+		if (fs.f_type != EXT4_SUPER_MAGIC /* also ext2, ext3 */) {
 			/*
 			 * On CoW filesystems, fallocate reserves _amount
 			 * of_ space but doesn't allocate a specific block.