diff options
author | Dan Carpenter <error27@gmail.com> | 2010-11-18 21:27:32 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-11-19 00:00:46 +0100 |
commit | 09c9feb94672bdb3ca6d424a292ffc26eff8ca0b (patch) | |
tree | e73e487f5b89de79c62ae784f0eda0721bc8f3c1 /Documentation/hwmon/max6650 | |
parent | kernel-doc: escape xml for structs (diff) | |
download | linux-09c9feb94672bdb3ca6d424a292ffc26eff8ca0b.tar.xz linux-09c9feb94672bdb3ca6d424a292ffc26eff8ca0b.zip |
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>
Diffstat (limited to 'Documentation/hwmon/max6650')
0 files changed, 0 insertions, 0 deletions