Skip to content

Commit

Permalink
fm10k: TRIVIAL fix up ordering of __always_unused and style
Browse files Browse the repository at this point in the history
Fix some style issues in debugfs code, and correct ordering of void and
__always_unused. Technically, the order does not matter, but preferred
style is to put the macro between the type and name.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Jacob Keller authored and Jeff Kirsher committed Sep 16, 2015
1 parent 855c40f commit 6fbc6b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ static void *fm10k_dbg_desc_seq_start(struct seq_file *s, loff_t *pos)
}

static void *fm10k_dbg_desc_seq_next(struct seq_file *s,
void __always_unused *v, loff_t *pos)
void __always_unused *v,
loff_t *pos)
{
struct fm10k_ring *ring = s->private;

return (++(*pos) < ring->count) ? pos : NULL;
}

static void fm10k_dbg_desc_seq_stop(struct seq_file __always_unused *s,
__always_unused void *v)
void __always_unused *v)
{
/* Do nothing. */
}
Expand Down

0 comments on commit 6fbc6b3

Please sign in to comment.