]> git.baikalelectronics.ru Git - kernel.git/commit
lib: vsprintf: useless strlen() removed
authorMichal Nazarewicz <mina86@mina86.com>
Tue, 10 Aug 2010 00:20:54 +0000 (17:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 03:45:09 +0000 (20:45 -0700)
commitc7a84df4a808cea5ebdd1e7905947e9e18c44466
tree5059f8a551b1cfb11f3a72f00b5f3ee584dd0a61
parent118a2801a204ca90aef2a84f73b67cea8c60f233
lib: vsprintf: useless strlen() removed

The strict_strtoul() and strict_strtoull() functions used strlen() to
check argument's length in a situation where it wasn't strictly necessary

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Cc: "Yi Yang" <yi.y.yang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c