]> git.baikalelectronics.ru Git - kernel.git/commit
dynamic_debug: small cleanup in ddebug_proc_write()
authorDan Carpenter <error27@gmail.com>
Mon, 24 May 2010 21:33:21 +0000 (14:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:07:05 +0000 (08:07 -0700)
commit5312d0d44dfd941b2136b7a7e6a1a30f9ccdbcb7
tree6a0bc2476e82be68b66cad2b77075e4f36beb1ea
parentdb8ddde294787267c63dffcf19599d2306089d02
dynamic_debug: small cleanup in ddebug_proc_write()

This doesn't change behavior at all.  In the original code, if nwords was
zero then ddebug_parse_query() would return -EINVAL, now we just do it
earlier.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/dynamic_debug.c