staging: pi433: replace simple switch statements
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Sun, 24 Jun 2018 16:31:38 +0000 (18:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 13:00:13 +0000 (22:00 +0900)
commit8679339524c11497b7b7019fa7e24fe8e9a78a91
treee19424ef19dc2462b90e5d8347b5e5c5e93666b2
parent983000d7fa5d7538915810b58c9e63cb6118eb1e
staging: pi433: replace simple switch statements

Use const array to map switch cases to resulting values.

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Reviewed-by: Marcus Wolf <Marcus.Wolf@Wolf-Entwicklungen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/rf69.c