staging: lustre: Cleanup cfs_str2mask in libcfs_string.c
authorMatthew Tyler <matt.tyler@flashics.com>
Mon, 15 Dec 2014 14:37:53 +0000 (22:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 23:39:32 +0000 (15:39 -0800)
commit3f9773a54a98d279530c7c5d7734b24edc1f757f
tree66267cb5b985aee0d5eba4cdeaf2225d1b664b41
parent5156647235d036ec3c827551395aac7a200e5c76
staging: lustre: Cleanup cfs_str2mask in libcfs_string.c

- Replace body-less for-loop with while loop
- Use '\0' for null character instead of 0

Signed-off-by: Matthew Tyler <matt.tyler@flashics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/libcfs_string.c