staging/lustre/fld: Remove useless typedefs
authorOleg Drokin <green@linuxhacker.ru>
Thu, 25 Feb 2016 02:59:45 +0000 (21:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:05:50 +0000 (22:05 -0800)
Typedefs fld_hash_func_t and fld_scan_func_t are used exectly once in
the following structure so don't really help anything at all.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fld/fld_internal.h

index 59eabda508a7641d06afae1bdb38d8c0c08df929..ee36d6b8df09b3d512a6b8552e3e3fa145eab464 100644 (file)
@@ -58,15 +58,10 @@ struct fld_stats {
        __u64   fst_inflight;
 };
 
-typedef int (*fld_hash_func_t) (struct lu_client_fld *, __u64);
-
-typedef struct lu_fld_target *
-(*fld_scan_func_t) (struct lu_client_fld *, __u64);
-
 struct lu_fld_hash {
        const char            *fh_name;
-       fld_hash_func_t   fh_hash_func;
-       fld_scan_func_t   fh_scan_func;
+       int (*fh_hash_func)(struct lu_client_fld *, __u64);
+       struct lu_fld_target *(*fh_scan_func)(struct lu_client_fld *, __u64);
 };
 
 struct fld_cache_entry {