Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (48 commits) Documentation: update broken web addresses. fix comment typo "choosed" -> "chosen" hostap:hostap_hw.c Fix typo in comment Fix spelling contorller -> controller in comments Kconfig.debug: FAIL_IO_TIMEOUT: typo Faul -> Fault fs/Kconfig: Fix typo Userpace -> Userspace Removing dead MACH_U300_BS26 drivers/infiniband: Remove unnecessary casts of private_data fs/ocfs2: Remove unnecessary casts of private_data libfc: use ARRAY_SIZE scsi: bfa: use ARRAY_SIZE drm: i915: use ARRAY_SIZE drm: drm_edid: use ARRAY_SIZE synclink: use ARRAY_SIZE block: cciss: use ARRAY_SIZE comment typo fixes: charater => character fix comment typos concerning "challenge" arm: plat-spear: fix typo in kerneldoc reiserfs: typo comment fix update email address ...
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user