diff options
| author | Jiri Slaby <jslaby@suse.cz> | 2020-02-19 09:49:43 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-19 12:46:47 +0100 |
| commit | 329aa6e6e12f2667eb59baf2030a38047ce0a1cd (patch) | |
| tree | 4d9483550b1d97f8cfc3ef6e5550eefbe8aeb44f /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | n_gsm: introduce enum gsm_dlci_mode (diff) | |
| download | linux-329aa6e6e12f2667eb59baf2030a38047ce0a1cd.tar.gz linux-329aa6e6e12f2667eb59baf2030a38047ce0a1cd.zip | |
n_gsm: introduce enum gsm_mux_state
gsm_mux->state is clearly an enumeration. So introduce one and use it
-- compiler now checks if valid values are assigned to the field.
Note that a compiler warns about unhandled cases in switch. Add default
cases with a pr_debug (which is not printed by default).
The values of the states are preserved thanks to the nature of enum.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219084949.28074-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
