]> git.baikalelectronics.ru Git - kernel.git/commit
lib/dynamic_debug.c: use seq_open_private() instead of seq_open()
authorRob Jones <rob.jones@codethink.co.uk>
Mon, 13 Oct 2014 22:51:32 +0000 (15:51 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2014 00:18:14 +0000 (02:18 +0200)
commit8af2f37a44fd018501fa237518de9694e4805bf9
tree9180b0d311924ce1ca96ffbec1e1e15c7d5342de
parent4e1cb435a9d162f4d1262d099348c3f86278fc20
lib/dynamic_debug.c: use seq_open_private() instead of seq_open()

Using seq_open_private() removes boilerplate code from ddebug_proc_open().

The resultant code is shorter and easier to follow.

This patch does not change any functionality.

Signed-off-by: Rob Jones <rob.jones@codethink.co.uk>
Acked-by: Jason Baron <jbaron@akamai.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/dynamic_debug.c