diff options
author | Marcin Ciupak <marcin.s.ciupak@gmail.com> | 2017-12-08 16:31:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-08 16:36:35 +0100 |
commit | 84f1e4b08919a3981a5dc0234e6c059e958f73e7 (patch) | |
tree | 3d6a5530595fece4bb3b9214fce02c495e1cfff9 /drivers/mmc | |
parent | staging: pi433: Fix missing 'undefined' value in enum modulation (diff) | |
download | linux-84f1e4b08919a3981a5dc0234e6c059e958f73e7.tar.xz linux-84f1e4b08919a3981a5dc0234e6c059e958f73e7.zip |
staging: pi433: Fix validation of rf69_get_modulation value
Checking of modulation in rf69_set_modulation_shaping is done by
if-else and since else part covers OOK and UNDEF values it possible to
set modulation shaping for undefined modulation type.
To fix this validation should be done by switch clause and in case of
undefined modulation error returned.
Signed-off-by: Marcin Ciupak <marcin.s.ciupak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions