diff options
author | Josh Triplett <josh@joshtriplett.org> | 2013-11-07 12:03:06 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-11-07 12:03:06 +1100 |
commit | 7c5598d4c8740214860372b6e6114f2675d68429 (patch) | |
tree | b88d549ae4f8a258a281fc37906af0e5a0be3889 /drivers/mtd/nand/r852.c | |
parent | 372dd3b277362f301318a526cc429e120c80e347 (diff) |
scripts/bloat-o-meter: use .startswith rather than fragile slicing
str.startswith has existed since at least Python 2.0, in 2000; use it
rather than a fragile comparison against an initial slice of a string,
which requires hard-coding the length of the string to compare against.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/mtd/nand/r852.c')
0 files changed, 0 insertions, 0 deletions