Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / drivers / scsi / libfc / fc_exch.c
index b8560ad8cf66dbdee173c3159103d78267c52982..ec2a1aec2350279bdd0b177b321f5694ff9a948b 100644 (file)
@@ -219,8 +219,6 @@ static void fc_exch_els_rrq(struct fc_frame *);
  */
 static char *fc_exch_rctl_names[] = FC_RCTL_NAMES_INIT;
 
-#define FC_TABLE_SIZE(x)   (sizeof(x) / sizeof(x[0]))
-
 /**
  * fc_exch_name_lookup() - Lookup name by opcode
  * @op:               Opcode to be looked up
@@ -249,7 +247,7 @@ static inline const char *fc_exch_name_lookup(unsigned int op, char **table,
 static const char *fc_exch_rctl_name(unsigned int op)
 {
        return fc_exch_name_lookup(op, fc_exch_rctl_names,
-                                  FC_TABLE_SIZE(fc_exch_rctl_names));
+                                  ARRAY_SIZE(fc_exch_rctl_names));
 }
 
 /**