Documentation: make configfs example code simpler, clearer
authorDan Carpenter <error27@gmail.com>
Thu, 18 Nov 2010 20:27:32 +0000 (12:27 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Nov 2010 23:00:46 +0000 (15:00 -0800)
commit09c9feb94672bdb3ca6d424a292ffc26eff8ca0b
treee73e487f5b89de79c62ae784f0eda0721bc8f3c1
parent2b35f4d9cab365d37c7b34ce51e1c1144c312d05
Documentation: make configfs example code simpler, clearer

If "p" is NULL then it will cause an oops when we pass it to
simple_strtoul().  In this case "p" can not be NULL so I removed the
check.  I also changed the check a little to make it more explicit that
we are testing whether p points to the NUL char.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/filesystems/configfs/configfs_example_explicit.c