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)
commit4bad78c550025346de3fc5820e366c7b525e1889
tree9180b0d311924ce1ca96ffbec1e1e15c7d5342de
parent8b21d9ca17ff8ed0dbf650f4162ee2d59bb5a881
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