aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTobin C. Harding <[email protected]>2017-03-13 17:38:22 +1100
committerGreg Kroah-Hartman <[email protected]>2017-03-14 06:20:06 +0800
commitdfe41b4f4c8d9d46a95da6959d2852757dfa8b3b (patch)
tree953f731add157589b1701d2d1ac475679ca1b995 /tools/perf/scripts/python
parent1b45ba65091483cbdfae57b2afc256936e3a3d96 (diff)
staging: ks7010: add variables key, key_index
'auth_type - 1' is used as an index into a key table. Adding a variable appropriately named simplifies the code and adds meaning when reading. Adding a pointer variable of type struct *kpa_key_t adds to readability by removing the table access each time the key is used. The key index is used to create a string so having it named adds additional meaning when creating the string. Declare variable 'key_index' and define it at declaration time. Declare a pointer variable 'key' and define it to point to the correct key in the key table. Signed-off-by: Tobin C. Harding <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions