diff --git a/kernel/fork.c b/kernel/fork.c
index a02063903aaabffcad69de5b662183f7ca5b1c97..d93ab2ba729c9e5b5b16a8a2d796b823765a92c3 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -769,8 +769,7 @@ int unshare_files(void)
 	struct files_struct *files  = current->files;
 	int rc;
 
-	if(!files)
-		BUG();
+	BUG_ON(!files);
 
 	/* This can race but the race causes us to copy when we don't
 	   need to and drop the copy */