[CIFS] clean up some hard to read ifdefs
[firefly-linux-kernel-4.4.55.git] / fs / cifs / readdir.c
index 89aae6cb32f82a418e3a9782c8f24015625d55e1..32b445edc88282d2ce55ab1bd5a8f7bc2b9d7b3d 100644 (file)
@@ -50,6 +50,10 @@ static void dump_cifs_file_struct(struct file *file, char *label)
                        cFYI(1, ("empty dir"));
        }
 }
+#else
+static inline void dump_cifs_file_struct(struct file *file, char *label)
+{
+}
 #endif /* DEBUG2 */
 
 /* Returns one if new inode created (which therefore needs to be hashed) */
@@ -660,9 +664,7 @@ static int find_cifs_entry(const int xid, struct cifsTconInfo *pTcon,
        . and .. for the root of a drive and for those we need
        to start two entries earlier */
 
-#ifdef CONFIG_CIFS_DEBUG2
        dump_cifs_file_struct(file, "In fce ");
-#endif
        if (((index_to_find < cifsFile->srch_inf.index_of_last_entry) &&
             is_dir_changed(file)) ||
           (index_to_find < first_entry_in_buffer)) {