ceph: return -EINVAL if given fsc mount option on kernel w/o support
[platform/kernel/linux-rpi.git] / fs / readdir.c
index 6e2623e..d26d5ea 100644 (file)
@@ -105,9 +105,9 @@ EXPORT_SYMBOL(iterate_dir);
  */
 static int verify_dirent_name(const char *name, int len)
 {
-       if (WARN_ON_ONCE(!len))
+       if (!len)
                return -EIO;
-       if (WARN_ON_ONCE(memchr(name, '/', len)))
+       if (memchr(name, '/', len))
                return -EIO;
        return 0;
 }