diff options
author | Tom Rix <[email protected]> | 2022-03-15 15:38:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-03-18 14:04:30 +0100 |
commit | 04c633873c01ce0591b05404af6481100871a921 (patch) | |
tree | 54d6a1b06e891a4e96fb723d409be89bf7f9518d /net/lapb/lapb_timer.c | |
parent | cac229ed3fde01c7dd488032b77a8f7459362660 (diff) |
counter: add defaults to switch-statements
Clang static analysis reports this representative problem
counter-chrdev.c:482:3: warning: Undefined or garbage value
returned to caller
return ret;
^~~~~~~~~~
counter_get_data() has a multilevel switches, some without
defaults, so ret is sometimes not set.
Add returning -EINVAL similar to other defaults.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jonathan Cameron <[email protected]>
Acked-by: Syed Nayyar Waris <[email protected]>
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: William Breathitt Gray <[email protected]>
Link: https://lore.kernel.org/r/b98d1a3ed4b0b324b261b23defd1bdddddba4d44.1647373009.git.vilhelm.gray@gmail.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions