Skip to content

Commit

Permalink
[PATCH] drivers/connector/cn_proc.c typos
Browse files Browse the repository at this point in the history
The parameter to put_cpu_var() is unreferenced by the implementation, and
the compiler doesn't try to comprehend comments, so this wouldn't cause any
problem, but if bugged me enough to post a fix :-)

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
David S. Miller authored and Linus Torvalds committed Jan 9, 2006
1 parent 5160ee6 commit cc398c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/connector/cn_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
static atomic_t proc_event_num_listeners = ATOMIC_INIT(0);
static struct cb_id cn_proc_event_id = { CN_IDX_PROC, CN_VAL_PROC };

/* proc_counts is used as the sequence number of the netlink message */
/* proc_event_counts is used as the sequence number of the netlink message */
static DEFINE_PER_CPU(__u32, proc_event_counts) = { 0 };

static inline void get_seq(__u32 *ts, int *cpu)
{
*ts = get_cpu_var(proc_event_counts)++;
*cpu = smp_processor_id();
put_cpu_var(proc_counts);
put_cpu_var(proc_event_counts);
}

void proc_fork_connector(struct task_struct *task)
Expand Down

0 comments on commit cc398c2

Please sign in to comment.