diff options
Diffstat (limited to 'drivers/scsi/libfc/fc_exch.c')
-rw-r--r-- | drivers/scsi/libfc/fc_exch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c index b8560ad8cf6..ec2a1aec235 100644 --- a/drivers/scsi/libfc/fc_exch.c +++ b/drivers/scsi/libfc/fc_exch.c | |||
@@ -219,8 +219,6 @@ static void fc_exch_els_rrq(struct fc_frame *); | |||
219 | */ | 219 | */ |
220 | static char *fc_exch_rctl_names[] = FC_RCTL_NAMES_INIT; | 220 | static char *fc_exch_rctl_names[] = FC_RCTL_NAMES_INIT; |
221 | 221 | ||
222 | #define FC_TABLE_SIZE(x) (sizeof(x) / sizeof(x[0])) | ||
223 | |||
224 | /** | 222 | /** |
225 | * fc_exch_name_lookup() - Lookup name by opcode | 223 | * fc_exch_name_lookup() - Lookup name by opcode |
226 | * @op: Opcode to be looked up | 224 | * @op: Opcode to be looked up |
@@ -249,7 +247,7 @@ static inline const char *fc_exch_name_lookup(unsigned int op, char **table, | |||
249 | static const char *fc_exch_rctl_name(unsigned int op) | 247 | static const char *fc_exch_rctl_name(unsigned int op) |
250 | { | 248 | { |
251 | return fc_exch_name_lookup(op, fc_exch_rctl_names, | 249 | return fc_exch_name_lookup(op, fc_exch_rctl_names, |
252 | FC_TABLE_SIZE(fc_exch_rctl_names)); | 250 | ARRAY_SIZE(fc_exch_rctl_names)); |
253 | } | 251 | } |
254 | 252 | ||
255 | /** | 253 | /** |