summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2014-09-28 22:52:27 +0900
committerSimon Glass <[email protected]>2014-10-22 10:32:16 -0600
commit2cede453dadae5bacd9c659704029bf81e7b06a0 (patch)
tree84f71c4c9320e81c4e062f973090783f4c3bf6e9 /include/linux/string.h
parent29a1bedbf33d788646b51391bb116e481b9f0b45 (diff)
dm: simplify the loop in lists_driver_lookup_name()
if (strncmp(name, entry->name, len)) continue; /* Full match */ if (len == strlen(entry->name)) return entry; is equivalent to: if (!strcmp(name, entry->name)) return entry; The latter is simpler. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Simon Glass <[email protected]> Acked-by: Igor Grinberg <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions