aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorBrian Norris <[email protected]>2016-01-07 09:53:08 -0800
committerBrian Norris <[email protected]>2016-01-08 09:49:03 -0800
commit9146cbd52b11d4ade62dba8f238ec5e421c3fa2b (patch)
tree016de373e49a6af84e52e96e7f3cb6b52e27a403 /tools/perf/util/trace-event-scripting.c
parent6c1207b5b8422cdddf467b9fbef922c4c374d382 (diff)
mtd: jz4780_nand: replace if/else blocks with switch/case
Using switch/case helps make this logic more clear and more robust. With this structure: * it's clear that this driver only support ECC_{HW,SOFT,SOFT_BCH}; and * we can sanely handle new ECC unsupported modes (right now, this code makes incorrect assumptions about the possible values in the nand_ecc_modes_t enum; e.g., what happens with NAND_ECC_HW_OOB_FIRST?) Signed-off-by: Brian Norris <[email protected]> Cc: Alex Smith <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Tested-by: Harvey Hunt <[email protected]> Acked-by: Harvey Hunt <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions