]> git.baikalelectronics.ru Git - kernel.git/commit
ipc/util.c: use __seq_open_private() instead of seq_open()
authorRob Jones <rob.jones@codethink.co.uk>
Mon, 13 Oct 2014 22:54:14 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2014 00:18:23 +0000 (02:18 +0200)
commit008f2243d782ae1f953d1845f5c20cfff05fe0ee
treeb7281faa4e9b6bffe7215d1bb875830e6ca64e99
parent689fe621701fcc142b3737b474b6de8826536703
ipc/util.c: use __seq_open_private() instead of seq_open()

Using __seq_open_private() removes boilerplate code from
sysvipc_proc_open().

The resultant code is shorter and easier to follow.

However, please note that __seq_open_private() call kzalloc() rather than
kmalloc() which may affect timing due to the memory initialisation
overhead.

Signed-off-by: Rob Jones <rob.jones@codethink.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/util.c