diff options
author | Jeff Layton <jlayton@samba.org> | 2012-10-29 15:45:37 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2012-10-29 15:45:37 -0400 |
commit | 035f69a9b5fe3c72df73bbbda2d7e570891f971e (patch) | |
tree | 74826ecf5a829994bd7ce17d60bc7620ed5e9e2e /ChangeLog | |
parent | d9b876bc5b047682854123aed082c1004b995b69 (diff) | |
download | cifs-utils-035f69a9b5fe3c72df73bbbda2d7e570891f971e.tar.gz cifs-utils-035f69a9b5fe3c72df73bbbda2d7e570891f971e.tar.bz2 cifs-utils-035f69a9b5fe3c72df73bbbda2d7e570891f971e.zip |
cifs.idmap: clean up strget and avoid memory allocation
Don't do a strlen() call if strstr() isn't going to match anyway.
There's no need to duplicate the string here. None of the callers modify
it, so just return a pointer into the original string.
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions