summaryrefslogtreecommitdiffstats
path: root/net/tipc/name_table.h
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2008-07-25 10:47:25 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-25 19:53:38 +0200
commitda5ef6bb96158b0fc0d808704237a453af449124 (patch)
treea63113cc3f60c2a6916697bbb06d3c677fa7c121 /net/tipc/name_table.h
parentcpuset: code-cleanup for started_after (diff)
downloadlinux-da5ef6bb96158b0fc0d808704237a453af449124.tar.xz
linux-da5ef6bb96158b0fc0d808704237a453af449124.zip
cpuset: two minor code-cleanups
In cpuset_update_task_memory_state() local variable struct task_struct *tsk = current; And local variable tsk is used 14 times and statement task_cs(tsk) is used twice in this function. So using task_cs(tsk) instead of task_cs(current) is better for readability. And "(struct cgroup_scanner *)&scan" is not good for readability also. (and "container_of" is used in cpuset_do_move_task(), not "(cpuset_hotplug_scanner *)scan") Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Acked-by: Paul Menage <menage@google.com> Cc: Paul Jackson <pj@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/tipc/name_table.h')
0 files changed, 0 insertions, 0 deletions