]> git.karo-electronics.de Git - linux-beck.git/commit
leds: Remove uneeded strlen calls
authorSven Wegener <sven.wegener@stealer.net>
Mon, 13 Oct 2008 09:41:39 +0000 (10:41 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 20 Oct 2008 21:37:04 +0000 (22:37 +0100)
commitdd8e5a2039607e0f79c33549726a2415d977c938
tree942cfaf23b21797dd8d8be4a22c4d2a8107a2545
parent6af4f55c31764c2d97ddf59ae2149cd1769e2e25
leds: Remove uneeded strlen calls

There's no need for the additional call to strlen(), we can directly
return the value returned by sprintf().  We now return a length value
that doesn't include the final '\0', but user space shouldn't bother
about it anyway.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/leds/led-class.c
drivers/leds/ledtrig-timer.c